fix: 修复禁言动作的正则检查

This commit is contained in:
YehowahLiu
2022-04-17 03:12:42 +08:00
parent b3ad996e68
commit e6882a1c7a
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
fun main(){
val regex = Regex("(?<=#group\\.mute(\\\\)?:)\\d+")
println(regex.find("#group.mute:abc")?.value?.toLong())
println(regex.find("#group.mute:12345")?.value?.toLong())
}