Skip to content

Commit bf451e6

Browse files
authored
fix: allow en dash
1 parent 17923ce commit bf451e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def validate_activity_name(name: str):
1717
return False, 'Should not have space before or after the string'
1818

1919
# Should only contain CJK, Latin Characters, numbers, spaces, slashes, and dots
20-
if not re.match(r'^[\u4e00-\u9fff\uac00-\ud7a3\u2013-\u2014a-zA-Z0-9 /-/.]+$', name):
20+
if not re.match(r'^[-\u4e00-\u9fff\uac00-\ud7a3\u2013-\u2014a-zA-Z0-9 /-/.]+$', name):
2121
return False, 'Should only appear in CJK, Latin Characters, numbers, spaces, slashes, dashes (including en dash and em dash), and dots'
2222

2323
# ASCII letters should be wrapped with spaces if inserted between CJK characters

0 commit comments

Comments
 (0)