Commit 2337453d authored by caihongming's avatar caihongming Committed by Him188

Fix #431

parent d6b85d40
......@@ -53,6 +53,9 @@ internal inline fun String.forEachMiraiCode(crossinline block: (origin: String,
block(result.value, result.groups[3]!!.value, "")
} else block(result.value, result.groups[1]!!.value, result.groups[2]?.value ?: "")
}
if (lastIndex != this.length) {
block(substring(lastIndex, this.length), null, "")
}
}
internal object MiraiCodeParsers : Map<String, MiraiCodeParser> by mapOf(
......
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