mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-29 01:01:19 +08:00
Update mirai code parser for new At
This commit is contained in:
parent
6c0b6473ed
commit
03f8cc9713
@ -59,8 +59,8 @@ internal inline fun String.forEachMiraiCode(crossinline block: (origin: String,
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal object MiraiCodeParsers : Map<String, MiraiCodeParser> by mapOf(
|
internal object MiraiCodeParsers : Map<String, MiraiCodeParser> by mapOf(
|
||||||
"at" to MiraiCodeParser(Regex("""(\d*),(.*)""")) { (target, display) ->
|
"at" to MiraiCodeParser(Regex("""(\d*)""")) { (target, _) ->
|
||||||
At._lowLevelConstructAtInstance(target.toLong(), display)
|
At(target.toLong())
|
||||||
},
|
},
|
||||||
"atall" to MiraiCodeParser(Regex("")) {
|
"atall" to MiraiCodeParser(Regex("")) {
|
||||||
AtAll
|
AtAll
|
||||||
|
Loading…
Reference in New Issue
Block a user