Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync USERNAME_REGEXP with the UI one #428

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

LazarenkoDmytro
Copy link
Contributor

An inconsistency existed between the UI's regular expression and the backend’s one. This inconsistency has been rectified.

The UI's regex:
NamePattern: /^[ґҐіІєЄїЇА-Яа-яa-zA-Z](?!.*\.$)(?!.*?\.\.)(?!.*?--)(?!.*?'')[-'ʼ’ ґҐіІєЄїЇА-Яа-я\w.]{0,29}$/

@LazarenkoDmytro LazarenkoDmytro self-assigned this Dec 14, 2024
Previously, these test cases were necessary. However, since the requirement to capitalize the first letter has been removed, the corresponding test cases have been eliminated.
Copy link

@dxrknesss dxrknesss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Added more comprehensive valid and invalid test cases for various DTOs to improve coverage and validation robustness. This includes additional name formats, edge cases, and boundary scenarios for better reliability.
Copy link

sonarcloud bot commented Dec 16, 2024

@LazarenkoDmytro LazarenkoDmytro merged commit 8a2914b into dev Dec 16, 2024
3 checks passed
@LazarenkoDmytro LazarenkoDmytro deleted the bug/7919/fix-capitalized-letter branch December 16, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the "first capital letter" requirment in username
7 participants