1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

Quick fix for an issue found while checking string templates.

This commit is contained in:
mike12345567 2021-01-22 13:56:29 +00:00
parent 33659dce7a
commit 6429750081

View file

@ -31,7 +31,8 @@ module.exports.processors = [
statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[") statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[")
} }
lastIdx = startBraceIdx + 1 lastIdx = startBraceIdx + 1
startBraceIdx = statement.substring(lastIdx + 1).indexOf("[") const nextBraceIdx = statement.substring(lastIdx + 1).indexOf("[")
startBraceIdx = nextBraceIdx > 0 ? lastIdx + 1 + nextBraceIdx : -1
} }
return statement return statement
}), }),