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

bug: Regex problem with Address and User tables #26

Closed
mkoper02 opened this issue May 8, 2024 · 0 comments · Fixed by #45
Closed

bug: Regex problem with Address and User tables #26

mkoper02 opened this issue May 8, 2024 · 0 comments · Fixed by #45
Assignees
Labels
scope: database Indicates that PR relates to database changes. type: bug Issues categorised as bug.

Comments

@mkoper02
Copy link
Collaborator

mkoper02 commented May 8, 2024

What is the current behaviour?

There are problems with regexes in Address and User table:

  • Address Country - regex only allows countries that consist of two words, starting with capital letter. It does not allow countries such as Bosnia and Herzegovina or United States of America because of more than two words and words starting with lowercase letters such as and or of.
    obraz

  • Address Street - regex doesn't allow letters at the end of the street, for example Street 123/5A is not valid bacause of A.
    obraz

  • User Username - regex allows usernames only with letters and numbers, characters such as - or _ are not valid.
    obraz

  • User Surname - regex doesn't allow surnames that have more than 2 words.
    obraz

What is the expected behaviour?

Regex for Address table:

  • Country - regex will allow countries with more than two words and words such as and or of that starts with lowercase letter.
  • Street - regex will allow streets with character at the end of the street name, next to digits.

Regex for User table:

  • Username - regex will allow usernames with characters such as - or _.
  • Surname - regex will allow surnames logner than 2 words.
@mkoper02 mkoper02 added scope: database Indicates that PR relates to database changes. type: bug Issues categorised as bug. labels May 8, 2024
@mkoper02 mkoper02 self-assigned this May 8, 2024
@wzarek wzarek changed the title Bug: Regex problem with country in Address table bug: Regex problem with country in Address table May 8, 2024
@mkoper02 mkoper02 changed the title bug: Regex problem with country in Address table bug: Regex problem with Address and User tables May 11, 2024
@raczu raczu closed this as completed in #45 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: database Indicates that PR relates to database changes. type: bug Issues categorised as bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant