colors: filter properly

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-06 18:19:13 -06:00
parent 3049b69e33
commit 502314ad3c
2 changed files with 1 additions and 3 deletions

View File

@ -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.

View File

@ -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: