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

NAT-328: fixed documentation issue from vale

parent 5f3148d1
No related branches found
No related tags found
No related merge requests found
Pipeline #84354 passed
......@@ -52,7 +52,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: # noqa: C
@validator("site_name", allow_reuse=True)
def site_name_must_be_valid(cls, site_name: str) -> str | NoReturn:
# Accept 3 chapital letters and only one ditigt after that terminate with $
# Accept 3 chapital letters and only one ditigt after capital letters.
pattern = re.compile(r"^[A-Z]{3}[0-9]?$")
if not bool(pattern.match(site_name)):
raise ValueError(f"Enter a valid site name similar looks like AMS, AMS1or LON9. Get: {site_name}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment