mirror of
https://github.com/jie65535/JDice.git
synced 2025-06-02 17:39:11 +08:00
Update Regex to \b(\d*)[dD](\d+)\b
This commit is contained in:
parent
f631218c0c
commit
0975e7e49c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user