mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-18 11:12:24 +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(
|
||||
"at" to MiraiCodeParser(Regex("""(\d*),(.*)""")) { (target, display) ->
|
||||
At._lowLevelConstructAtInstance(target.toLong(), display)
|
||||
"at" to MiraiCodeParser(Regex("""(\d*)""")) { (target, _) ->
|
||||
At(target.toLong())
|
||||
},
|
||||
"atall" to MiraiCodeParser(Regex("")) {
|
||||
AtAll
|
||||
|
Loading…
Reference in New Issue
Block a user