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>
This commit is contained in:
parent
ac43db80de
commit
400230618d
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue