Update public/js/index.js

simplify the regex
suggested by yukaii in #1605

Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
This commit is contained in:
TAKAHASHI Tamotsu 2021-05-12 09:22:03 +09:00 committed by Tamotsu Takahashi
parent ac43db80de
commit ad1bfa6bc6
1 changed files with 1 additions and 1 deletions

View File

@ -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 {