Skip to content
Snippets Groups Projects
Commit 5732eb14 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update docstring in TT-number validation method

parent 8f2d4cef
No related branches found
No related tags found
1 merge request!159Feature/nat 410 add validator for tty number
Pipeline #85758 passed
......@@ -279,8 +279,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)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment