From 400230618d2721b2088ab0a8c36697d2fcdbc9de Mon Sep 17 00:00:00 2001 From: TAKAHASHI Tamotsu Date: Wed, 12 May 2021 09:22:03 +0900 Subject: [PATCH] Update public/js/index.js simplify the regex suggested by yukaii in #1605 Co-authored-by: Yukai Huang --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 9f2421cc..f26db0fe 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -3137,7 +3137,7 @@ function checkInContainerSyntax () { function matchInContainer (text) { var match - match = text.match(/(^|\n):::/gm) + match = text.match(/^:::/gm) if (match && match.length % 2) { return true } else {