mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 06:08:34 +01:00
fix some stuff :3
This commit is contained in:
parent
a8a98b0ba3
commit
911eebf02f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue