Skip to content

Commit eca0af8

Browse files
committed
Update plando_validation.py
1 parent 6fae818 commit eca0af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/plando_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ def hint_text_validation_fn(hintString: str) -> str:
264264
for color in colors:
265265
trimmedHintString = trimmedHintString.replace(f"[{color}]", "")
266266
trimmedHintString = trimmedHintString.replace(f"[/{color}]", "")
267-
if re.search("[^A-Za-z0-9 '\,\:\.\-\?!]", trimmedHintString) is not None:
268-
errString = "Only letters, numbers, spaces, the characters ',.:-?! and color tags are allowed in hints."
267+
if re.search("[^A-Za-z0-9 '\,\:\.\-\?!()]", trimmedHintString) is not None:
268+
errString = "Only letters, numbers, spaces, the characters ',.:-?!() and color tags are allowed in hints."
269269
return errString
270270
if len(trimmedHintString) > 123:
271271
errString = "Hints can be a maximum of 123 characters (excluding color tags)."

0 commit comments

Comments
 (0)