Skip to content

Commit

Permalink
Sync USERNAME_REGEXP with the UI one
Browse files Browse the repository at this point in the history
  • Loading branch information
LazarenkoDmytro committed Dec 14, 2024
1 parent 573a7b3 commit 1a22bda
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,5 @@ public class ValidationConstants {
public static final String CATEGORY_NAME_BAD_FORMED = "{greenCity.validation.bad.formed.category.name}";
public static final int PLACE_NAME_MAX_LENGTH = 30;
public static final String USERNAME_REGEXP =
"""
^(?!.*\\.\\.)(?!.*\\.$)(?!.*\\-\\-)\
(?=[ЄІЇҐЁА-ЯA-Z])\
[ЄІЇҐЁєіїґёА-Яа-яA-Za-z0-9\\s-'’.\\"]\
{1,30}\
(?<![ЭэЁёъЪЫы])$\
""";
"^[ґҐіІєЄїЇА-Яа-яa-zA-Z](?!.*\\.$)(?!.*?\\.\\.)(?!.*?--)(?!.*?'')[-'ʼ’ ґҐіІєЄїЇА-Яа-я\\w.]{0,29}$";
}

0 comments on commit 1a22bda

Please sign in to comment.