bbcode find close tag loop end condition

Only break loop when close tag has been found. Otherwise, keep searching until the end of string.
This commit is contained in:
Guo Yunhe 2017-09-06 09:13:57 +03:00 committed by GitHub
parent 8463b676df
commit 7d29ccf207
1 changed files with 1 additions and 1 deletions

View File

@ -178,8 +178,8 @@ function findInlineCloseTag(state, openTag, start, max) {
closeTag = null;
} else {
closeTag.start = j;
break;
}
break;
}
}
}