mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 13:43:45 +00:00
fix some stuff :3
This commit is contained in:
@@ -28,9 +28,9 @@ function convert(value) {
|
||||
}
|
||||
|
||||
function getFirstLine(text) {
|
||||
var index = text.indexOf("<br> ");
|
||||
var index = text?.indexOf("<br> ");
|
||||
if (index === -1) index = undefined;
|
||||
return text.substring(0, index);
|
||||
return text?.substring(0, index);
|
||||
}
|
||||
|
||||
function capitalizeFirstLetter(string) {
|
||||
|
||||
Reference in New Issue
Block a user