From a4be651118da5923675843f0b5f9c02afdf5bbd7 Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Fri, 1 Apr 2022 15:26:50 +0800 Subject: [PATCH] Update server/model/monitor.js Co-authored-by: Adam Stachowicz --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index fc8ad9e58..ad74cd3db 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -232,7 +232,7 @@ class Monitor extends BeanModel { bean.status = UP; } else { data = data.replace(/<[^>]*>?|[\n\r]|\s+/gm, " "); - if ( data.length > 50 ) { + if (data.length > 50) { data = data.substring(0, 47) + "..."; } throw new Error(bean.msg + ", but keyword is not in [" + data + "]");