mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
fix(status_page): RegExp
This commit is contained in:
parent
3422b73ee8
commit
d403d433c5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue