Skip to content

Commit

Permalink
fix: accept capital letters in aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Makcal authored Aug 14, 2024
1 parent 55ead3e commit 67d31e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/dialogs/invitation/outgoing_invitations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def on_delete_invitation(
@staticmethod
async def on_enter_alias(message: Message, widget, manager: DialogManager, alias: str):
alias = alias.strip()
if not InviteWindowConsts.ALIAS_PATTERN.fullmatch(alias):
if not InviteWindowConsts.ALIAS_PATTERN.fullmatch(alias.lower()):
await message.answer(InviteWindowConsts.INCORRECT_ALIAS_MESSAGE)
return

Expand Down

0 comments on commit 67d31e4

Please sign in to comment.