Skip to content

Commit

Permalink
chore: Update ImplicitBoolFlagConverter to make a delimiter not a group
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-344 committed Nov 30, 2024
1 parent 8b3df80 commit 7a5d8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_tools/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def parse_flags(

joined = '|'.join(keys)
pattern = re.compile(
f'(({re.escape(prefix)})(?P<flag>{joined})(?P<delimiter>{re.escape(delimiter)}?))',
f'(({re.escape(prefix)})(?P<flag>{joined})({re.escape(delimiter)}?))',
flags=regex_flags,
)

Expand Down

0 comments on commit 7a5d8a1

Please sign in to comment.