Allow special characters &,-,_ for ship name and callsign

This commit is contained in:
Daniel Schick 2025-07-25 13:05:47 +02:00
parent 7fea4d27b7
commit 2df07093ef

View File

@ -14,7 +14,7 @@ def check_if_string_has_special_characters(text:typing.Optional[str]):
"""
if text is None:
return False
return bool(set(text).difference(ascii_letters + digits + ' '))
return bool(set(text).difference(ascii_letters + digits + ' ' + '&' + '_' + '-'))
def check_if_int_is_valid_flag(value, enum_object):