Skip to content

Commit

Permalink
🔨 Make command name splitting a little more comprehensive
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Jan 23, 2025
1 parent 2571ea3 commit 3a56c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braindrop/app/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Command(Message):
keys and also an overriding display value, or `None`.
"""

_SPLITTER: Final[Pattern[str]] = compile("[A-Z][^A-Z]*")
_SPLITTER: Final[Pattern[str]] = compile("[A-Z]?[a-z]+|[A-Z]+(?=[A-Z]|$)")
"""Regular expression for splitting up a command name."""

@classmethod
Expand Down

0 comments on commit 3a56c89

Please sign in to comment.