Update public/js/index.js

simplify the regex
suggested by yukaii in #1605

Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
TAKAHASHI Tamotsu 2021-05-12 09:22:03 +09:00 committed by GitHub
parent ac43db80de
commit 400230618d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3137,7 +3137,7 @@ function checkInContainerSyntax () {
function matchInContainer (text) { function matchInContainer (text) {
var match var match
match = text.match(/(^|\n):::/gm) match = text.match(/^:::/gm)
if (match && match.length % 2) { if (match && match.length % 2) {
return true return true
} else { } else {