Skip to content
Snippets Groups Projects
Commit 3508a215 authored by Hakan Calim's avatar Hakan Calim
Browse files

Merge branch 'feature/NAT-410_add_validator_for_tty_number' of...

Merge branch 'feature/NAT-410_add_validator_for_tty_number' of gitlab.software.geant.org:goat/gap/geant-service-orchestrator into feature/NAT-410_add_validator_for_tty_number
parents da0ed76b 041fc36f
No related branches found
No related tags found
1 merge request!159Feature/nat 410 add validator for tty number
Pipeline #85757 passed
......@@ -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)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment