mirror of https://github.com/status-im/codimd.git
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:
parent
ac43db80de
commit
ad1bfa6bc6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue