mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-22 02:54:52 +00:00
refactor: autofix issues in 1 file
Resolved issues in TFR/server/account.py with DeepSource Autofix
This commit is contained in:
parent
869262a8fe
commit
8995843f74
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ def post_settings():
|
||||||
twitch = request.form.get("twitch", "").strip()
|
twitch = request.form.get("twitch", "").strip()
|
||||||
youtube = request.form.get("youtube", "").strip()
|
youtube = request.form.get("youtube", "").strip()
|
||||||
|
|
||||||
twitter_regex = re.compile("^(?!.*\.\.)(?!.*\.$)[\w.]{1,15}$")
|
twitter_regex = re.compile(r"^(?!.*\.\.)(?!.*\.$)[\w.]{1,15}$")
|
||||||
twitch_regex = re.compile("^(?=.{4,25}$)(?!_)(?!.*[_.]{2})[a-zA-Z0-9._]+$")
|
twitch_regex = re.compile("^(?=.{4,25}$)(?!_)(?!.*[_.]{2})[a-zA-Z0-9._]+$")
|
||||||
youtube_regex = re.compile("^(?!.*[._]{2})[a-zA-Z0-9._-]{1,50}$")
|
youtube_regex = re.compile("^(?!.*[._]{2})[a-zA-Z0-9._-]{1,50}$")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue