-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: permit more names in YouthApplication (first|last)_name & school
these now accept any other strings except empty/whitespace only strings: - YouthApplication.first_name - YouthApplication.last_name - YouthApplication.school refs YJDH-661
- Loading branch information
1 parent
f8d46a0
commit cc10fb1
Showing
5 changed files
with
136 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
ARABIC_NAME = "حَسَّان" # Ḥassān (benefactor) in Arabic | ||
CHINESE_NAME = "慧芬" # Huì Fēn (wise scent) in Mandarin Chinese | ||
ESTONIAN_NAME = "Õras" | ||
FINNISH_NAME = "Matti Meikäläinen" | ||
GERMAN_NAME = "Strauß Jünemann" | ||
HEBREW_NAME = "אברהם" # Abraham (father of many) in Hebrew | ||
ICELANDIC_FEMALE_NAME = "María Kristín Þorkelsdóttir" | ||
ICELANDIC_MALE_NAME = "Ingólfur Álfheiður" | ||
RUSSIAN_NAME = "Мельник" # Melnik (miller) in Russian | ||
SHORT_CHINESE_NAME = "王" # Wáng (king) in Mandarin Chinese | ||
SPANISH_NAME = "Peña" | ||
SWEDISH_NAME = "Åse-Marie Öllegård" | ||
THAI_NAME = "อาทิตย์" # Arthit (sun) in Thai | ||
TURKISH_NAME = "Ümit" # Ümit (hope) in Turkish | ||
|
||
VALID_NAMES = [ | ||
# should match Finnish first names, last names and full names | ||
"Helinä", | ||
"Aalto", | ||
"Kalle Väyrynen", | ||
"Janne Ö", | ||
# should match Swedish first names, last names and full names | ||
"Gun-Britt", | ||
"Lindén", | ||
"Ögge Ekström", | ||
# should match English first names, last names and full names | ||
"Eric", | ||
"Bradtke", | ||
"Daniela O'Brian", | ||
# should match special characters | ||
"!@#$%^&*()_+-=[]{}|;':\",./<>?", | ||
# should match digits | ||
"1234567890", | ||
# should match more languages than just Finnish, Swedish, English | ||
ARABIC_NAME, | ||
CHINESE_NAME, | ||
ESTONIAN_NAME, | ||
FINNISH_NAME, | ||
GERMAN_NAME, | ||
HEBREW_NAME, | ||
ICELANDIC_FEMALE_NAME, | ||
ICELANDIC_MALE_NAME, | ||
RUSSIAN_NAME, | ||
SHORT_CHINESE_NAME, | ||
SPANISH_NAME, | ||
SWEDISH_NAME, | ||
THAI_NAME, | ||
TURKISH_NAME, | ||
] | ||
|
||
INVALID_NAMES = [ | ||
"", | ||
" ", | ||
"\t", | ||
"\r", | ||
"\n", | ||
"\r\n", | ||
" \t\r\n ", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters