for UserRandom requires the surrounding space between 'or' to avoid mismatches.

This commit is contained in:
A.C.Sukazyo Eyre 2024-05-06 17:16:43 +08:00
parent 7e8e66fcbb
commit d408fa2561
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s
VERSION = 1.3.4-dev1
VERSION = 1.3.4-dev2
USE_DELTA = false
VERSION_DELTA =

View File

@ -13,9 +13,8 @@ class OnUserRandom (using coeur: MornyCoeur) {
object RandomSelect extends EventListener {
private val USER_OR_QUERY = "^(.+)(?:还是|or)(.+)$" r
private val USER_IF_QUERY = "^(.+)(?:吗\\?||\\?|吗?)$" r
private val USER_OR_QUERY = "^(.+)(?:还是| or )(.+)$"r
private val USER_IF_QUERY = "^(.+)(?:吗\\?||\\?|吗?)$"r
override def onMessage (using event: EventEnv): Unit = {
import event.update