Skip to content

Commit c853416

Browse files
Update constants.py
Added regex comment
1 parent 511a3be commit c853416

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/backend/src/couchers/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# Must match the frontend values in app/web/utils/validation.ts
1616
VALID_NAME_MIN_LENGTH = 2
1717
VALID_NAME_MAX_LENGTH = 100
18+
19+
# Letters, diacritics, internal spaces, quotes, dashes, commas, dots, and's for two names. See tests!
1820
VALID_NAME_REGEX = r"""^(?!\p{Zs})[\p{L}\p{M}\p{Zs}\p{Pi}\p{Pf}\p{Pd},.'"·・&/|]+(?<!\p{Zs})$"""
1921

2022
BANNED_USERNAME_PHRASES = [

0 commit comments

Comments
 (0)