Skip to content
Snippets Groups Projects

Feature/nat 410 add validator for tty number

Merged Hakan Calim requested to merge feature/NAT-410_add_validator_for_tty_number into develop
All threads resolved!
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -280,8 +280,7 @@ def validate_tt_number(tt_number: str) -> str:
:param str tt_number: The TT number as string to validate
:return str: The tt number string, if tt number match was successful, otherwise it will throw a ValueError
exception.
:return str: The TT number string if TT number match was successful, otherwise it will raise a ValueError.
"""
pattern = r"^TT#\d{16}$"
if not bool(re.match(pattern, tt_number)):
Loading