Skip to content

Commit 4002306

Browse files
tamoYukaii
andauthored
Update public/js/index.js
simplify the regex suggested by yukaii in #1605 Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent ac43db8 commit 4002306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3137,7 +3137,7 @@ function checkInContainerSyntax () {
31373137

31383138
function matchInContainer (text) {
31393139
var match
3140-
match = text.match(/(^|\n):::/gm)
3140+
match = text.match(/^:::/gm)
31413141
if (match && match.length % 2) {
31423142
return true
31433143
} else {

0 commit comments

Comments
 (0)