mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-20 18:19:14 +08:00
Fix #431
This commit is contained in:
parent
d6b85d40ce
commit
2337453d84
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user