mirror of
https://github.com/jie65535/JDice.git
synced 2026-10-30 13:42:14 +08:00
Update Regex to \b(\d*)[dD](\d+)\b
This commit is contained in:
1 parent
f631218c0c
commit
0975e7e49c
1 file changed
+2
-2
@@ -17,7 +17,7 @@ object JDice : KotlinPlugin(
|
||||
author("jie65535")
|
||||
}
|
||||
) {
|
||||
private val regex = Regex("""(\d*)[dD](\d+)""")
|
||||
private val regex = Regex("""\b(\d*)[dD](\d+)\b""")
|
||||
private val random = Random(System.currentTimeMillis())
|
||||
|
||||
override fun onEnable() {
|
||||
@@ -36,4 +36,4 @@ object JDice : KotlinPlugin(
|
||||
|
||||
logger.info { "Plugin loaded. https://github.com/jie65535/JDice" }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user