Fix: Ignore "!" while matching keywords

This commit is contained in:
LmeSzinc 2023-07-30 01:18:53 +08:00
parent 57005e6d51
commit 1536ff0ad3

View File

@ -6,7 +6,7 @@ from typing import ClassVar
from module.exception import ScriptError
import module.config.server as server
REGEX_PUNCTUATION = re.compile(r'[ ,.\'"“”,。·•\-—/\\\n\t()()「」『』【】]')
REGEX_PUNCTUATION = re.compile(r'[ ,.\'"“”,。!?·•\-—/\\\n\t()()「」『』【】]')
def parse_name(n):