Skip to content

Commit

Permalink
Update public/js/index.js
Browse files Browse the repository at this point in the history
simplify the regex
suggested by yukaii in #1605

Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
  • Loading branch information
tamo and Yukaii authored May 12, 2021
1 parent ac43db8 commit 4002306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4002306

Please sign in to comment.