Skip to content

Commit

Permalink
Allow underscores in competition name
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Mar 5, 2023
1 parent 8588a91 commit 65cd5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progcomp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def verify_input(inp: Optional[str], max_len: int = 100) -> bool:
or inp == ""
or inp.isspace()
or len(inp) > max_len
or not inp.isalnum()
or not re.match(r"^[A-Za-z0-9_]+$", inp)
)


Expand Down Expand Up @@ -275,7 +275,7 @@ def leaderboard(p_name, p_set) -> FlaskResponse:
if (
not pc.show_leaderboard
or not re.match(r"^[A-Za-z0-9_]+$", p_name)
or not re.match(r"^[A-Za-z0-9_]+$", p_name)
or not re.match(r"^[A-Za-z0-9_]+$", p_set)
):
return redirect(url_for("progcomp.menu"))

Expand Down

0 comments on commit 65cd5c9

Please sign in to comment.