Commit a379ceb3 authored by Him188's avatar Him188

Fix parseMiraiCode

parent 4c9532ba
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment