Commit 75831729 authored by Him188's avatar Him188

Remove parentheses in mirai code of VipFace

parent d2602cb9
......@@ -166,7 +166,7 @@ data class VipFace internal constructor(
val name: String
) {
override fun toString(): String {
return "($id,$name)"
return "$id,$name"
}
}
......
......@@ -65,7 +65,7 @@ internal object MiraiCodeParsers : Map<String, MiraiCodeParser> by mapOf(
"poke" to MiraiCodeParser(Regex("(.*)?,(\\d*),(-?\\d*)")) { (name, type, id) ->
PokeMessage(name, type.toInt(), id.toInt())
},
"vipface" to MiraiCodeParser(Regex("""\((\d*),(.*)\),(\d*)""")) { (id, name, count) ->
"vipface" to MiraiCodeParser(Regex("""(\d*),(.*),(\d*)""")) { (id, name, count) ->
VipFace(VipFace.Kind(id.toInt(), name), count.toInt())
},
"face" to MiraiCodeParser(Regex("""(\d*)""")) { (id) ->
......
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