1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:54:39 -05:00

fix some stuff :3

This commit is contained in:
Ashley 2023-09-27 18:14:47 +00:00
parent a8a98b0ba3
commit 911eebf02f

View file

@ -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) {