chore: comment initial space (#3192) [skip ci]

fix(typo): Comment add spaces.
This commit is contained in:
xiejiahe 2021-02-08 19:32:12 +08:00 committed by GitHub
parent dfd31c3636
commit 1cc8712235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -924,7 +924,7 @@ function isEnd(
switch (mode) { switch (mode) {
case TextModes.DATA: case TextModes.DATA:
if (startsWith(s, '</')) { if (startsWith(s, '</')) {
//TODO: probably bad performance // TODO: probably bad performance
for (let i = ancestors.length - 1; i >= 0; --i) { for (let i = ancestors.length - 1; i >= 0; --i) {
if (startsWithEndTagOpen(s, ancestors[i].tag)) { if (startsWithEndTagOpen(s, ancestors[i].tag)) {
return true return true