diff --git a/files/helpers/regex.py b/files/helpers/regex.py index b67b50e03..c15e29ade 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -102,7 +102,7 @@ ascii_only_regex = re.compile("[ -~]+", flags=re.A) reddit_to_vreddit_regex = re.compile('(^|>|")https:\/\/old.reddit.com\/(r|u)\/', flags=re.A) reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(reddit\.com|(?:(?:[A-z]{2})(?:-[A-z]{2})" "?|beta|i|m|pay|ssl|www|new|alpha)\.reddit\.com|libredd\.it|teddit\.net)\/(r|u)\/", flags=re.A) -color_regex = re.compile("[a-z0-9]{6}", flags=re.A) +color_regex = re.compile("[a-f0-9]{6}", flags=re.A) # lazy match on the {}?, only match if there is trailing stuff # Specifically match Snappy's way of formatting, this might break some losers' comments. diff --git a/files/routes/settings.py b/files/routes/settings.py index d2d5ecba7..cfcb0e9a4 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -823,8 +823,6 @@ def settings_title_change(v): @auth_required @feature_required('PRONOUNS') def settings_pronouns_change(v): - - pronouns = request.values.get("pronouns").replace("𒐪","").strip() if len(pronouns) > 11: