colors: filter properly
parent
3049b69e33
commit
502314ad3c
|
@ -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_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)
|
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
|
# lazy match on the {}?, only match if there is trailing stuff
|
||||||
# Specifically match Snappy's way of formatting, this might break some losers' comments.
|
# Specifically match Snappy's way of formatting, this might break some losers' comments.
|
||||||
|
|
|
@ -823,8 +823,6 @@ def settings_title_change(v):
|
||||||
@auth_required
|
@auth_required
|
||||||
@feature_required('PRONOUNS')
|
@feature_required('PRONOUNS')
|
||||||
def settings_pronouns_change(v):
|
def settings_pronouns_change(v):
|
||||||
|
|
||||||
|
|
||||||
pronouns = request.values.get("pronouns").replace("𒐪","").strip()
|
pronouns = request.values.get("pronouns").replace("𒐪","").strip()
|
||||||
|
|
||||||
if len(pronouns) > 11:
|
if len(pronouns) > 11:
|
||||||
|
|
Loading…
Reference in New Issue