Fix parseMiraiCode

This commit is contained in:
Him188 2020-06-07 18:55:07 +08:00
parent 4c9532bad6
commit a379ceb3b0

View File

@ -52,7 +52,7 @@ private inline fun String.forEachMiraiCode(crossinline block: (origin: String, n
for (result in codeRegex.findAll(this)) {
if (result.range.first != lastIndex) {
// skipped string
block(result.value, null, substring(lastIndex, result.range.first))
block(substring(lastIndex, result.range.first), null, "")
}
lastIndex = result.range.last + 1