From ef8068e644ba152c2be8c7cef19914b4127dc899 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 9 Apr 2022 18:52:25 +0200 Subject: [PATCH] fsd --- files/helpers/const.py | 8 ++++---- files/routes/settings.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 291b4a58f..c1287b9f4 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -678,7 +678,7 @@ marsey_regex = re.compile("[a-z0-9]{1,30}", flags=re.A) tags_regex = re.compile("[a-z0-9: ]{1,200}", flags=re.A) -image_regex = re.compile("(^https:\/\/[\w\-.#&/=\?@%+]{5,250}\.(png|jpg|jpeg|gif|webp|maxwidth=9999|fidelity=high)($|\s))", flags=re.I|re.M|re.A) +image_regex = re.compile("(^https:\/\/[\w\-.#&/=\?@%;+]{5,250}\.(png|jpg|jpeg|gif|webp|maxwidth=9999|fidelity=high)($|\s))", flags=re.I|re.M|re.A) valid_sub_regex = re.compile("^[a-zA-Z0-9_\-]{3,20}$", flags=re.A) @@ -701,8 +701,8 @@ controversial_regex = re.compile('["> ](https:\/\/old\.reddit\.com/r/[a-zA-Z0-9_ fishylinks_regex = re.compile("https?://\S+", flags=re.A) spoiler_regex = re.compile('''\|\|(.+)\|\|''', flags=re.A) -video_regex = re.compile('

(https:\/\/[\w\-.#&/=\?@%+]{5,250}\.(mp4|webm|mov))<\/a><\/p>', flags=re.I|re.A) -unlinked_regex = re.compile('''(^|\s|

)(https:\/\/[\w\-.#&/=\?@%+]{5,250})''', flags=re.A) +video_regex = re.compile('

(https:\/\/[\w\-.#&/=\?@%;+]{5,250}\.(mp4|webm|mov))<\/a><\/p>', flags=re.I|re.A) +unlinked_regex = re.compile('''(^|\s|

)(https:\/\/[\w\-.#&/=\?@%;+]{5,250})''', flags=re.A) imgur_regex = re.compile('(https://i\.imgur\.com/([a-z0-9]+))\.(jpg|png|jpeg|webp)(?!)', flags=re.I|re.A) reddit_regex = re.compile('(^|\s|

)\/?((r|u)\/(\w|-){3,25})', flags=re.A) sub_regex = re.compile('(^|\s|

)\/?(h\/(\w|-){3,25})', flags=re.A) @@ -719,7 +719,7 @@ emoji_regex2 = re.compile('(?([\w:~,()\-.#&\/=?@%+]{5,250})<\/a>', flags=re.A) +snappy_url_regex = re.compile('([\w:~,()\-.#&\/=?@%;+]{5,250})<\/a>', flags=re.A) email_regex = re.compile('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,100})+', flags=re.A) diff --git a/files/routes/settings.py b/files/routes/settings.py index 6e2c06e5d..43baff3b6 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -445,8 +445,8 @@ def gumroad(v): elif v.patron == 3: procoins = 10000 elif v.patron == 4: procoins = 25000 elif v.patron == 5: procoins = 50000 - elif u.patron == 6: procoins = 125000 - elif u.patron == 7: procoins = 250000 + elif v.patron == 6: procoins = 125000 + elif v.patron == 7: procoins = 250000 v.procoins += procoins send_repeatable_notification(v.id, f"You have received {procoins} Marseybux! You can use them to buy awards in the [shop](/shop).")