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) { function getFirstLine(text) {
var index = text.indexOf("<br> "); var index = text?.indexOf("<br> ");
if (index === -1) index = undefined; if (index === -1) index = undefined;
return text.substring(0, index); return text?.substring(0, index);
} }
function capitalizeFirstLetter(string) { function capitalizeFirstLetter(string) {