Skip to content

Commit

Permalink
Merge pull request #219 from spyoungtech/gh-218
Browse files Browse the repository at this point in the history
support asterisk in hotkey options
  • Loading branch information
spyoungtech committed Jul 10, 2023
2 parents 9c3386c + e42b1b3 commit 9439105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ahk/_hotkey.py
Expand Up @@ -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

Expand Down

0 comments on commit 9439105

Please sign in to comment.