make badge_name_regex more permissive

pull/139/head
Aevann 2023-03-10 00:35:45 +02:00
parent ad463de015
commit 0ae7c0c26f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ tags_regex = re.compile("[a-z0-9: ]{1,200}", flags=re.A)
hat_regex = re.compile("[a-zA-Z0-9\-() ,_]{1,50}", flags=re.A)
description_regex = re.compile("[^<>&\n\t]{1,300}", flags=re.A)
badge_name_regex = re.compile("[A-Za-z0-9 ]+", flags=re.A)
badge_name_regex = re.compile(r"[^\/.]+", flags=re.A)
valid_sub_regex = re.compile("^[a-zA-Z0-9_\-]{3,25}$", flags=re.A)