fix(status_page): RegExp

This commit is contained in:
taiseiotsuka 2024-07-31 23:22:42 +09:00
parent 3422b73ee8
commit d403d433c5

View file

@ -51,7 +51,7 @@ class StatusPage extends BeanModel {
let description155 = "";
if (statusPage.description) {
description155 = marked(statusPage.description)
.replace(/<[^>]+>/g, "")
.replace(/(<([^>]+)>)/gi, "")
.trim();
description155 = description155.substring(0, 155);
}