Allow context menus have ? and ! in their name

This commit is contained in:
Puncher 2022-03-27 05:41:05 +02:00 committed by GitHub
parent 7362a2582c
commit 0bcb0d0e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ else:
CheckInputParameter = Union['Command[Any, ..., Any]', 'ContextMenu', CommandCallback, ContextMenuCallback]
VALID_SLASH_COMMAND_NAME = re.compile(r'^[\w-]{1,32}$')
VALID_CONTEXT_MENU_NAME = re.compile(r'^[\w\s-]{1,32}$')
VALID_CONTEXT_MENU_NAME = re.compile(r'^[?!\w\s-]{1,32}$')
CAMEL_CASE_REGEX = re.compile(r'(?<!^)(?=[A-Z])')