From e42b1b30891f94eb646f71375c79e3cee390702b Mon Sep 17 00:00:00 2001 From: Spencer Phillip Young Date: Sun, 9 Jul 2023 21:37:35 -0700 Subject: [PATCH] support asterisk in hotkey options --- ahk/_hotkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahk/_hotkey.py b/ahk/_hotkey.py index 7cb076a..026a4de 100644 --- a/ahk/_hotkey.py +++ b/ahk/_hotkey.py @@ -406,7 +406,7 @@ def _validate(self) -> None: assert '\n' not in self.options, 'Newlines not allowed in options' assert 'x' not in self.options.lower(), 'X is not an allowed option. Use a callback instead.' assert re.fullmatch( - r'(\?|C|C1|K\d+|O|P\d+|S[IPE]|T|Z)+', self.options.upper() + r'(\*|\?|C|C1|K\d+|O|P\d+|S[IPE]|T|Z)+', self.options.upper() ), f'Invalid options: {self.options!r}' return None