diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 5e62394e4..e7d59e3d0 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -102,7 +102,7 @@ search_token_regex = re.compile('"([^"]*)"|(\S+)', flags=re.A) git_regex = re.compile("ref: (refs/.+)", flags=re.A) -pronouns_regex = re.compile("([a-z]{2,5}|i)/[a-z]{2,5}(/[a-z]{2,5})?", flags=re.A) +pronouns_regex = re.compile("([a-z]{1,5})/[a-z]{2,5}(/[a-z]{2,5})?", flags=re.A|re.I) knowledgebase_page_regex = re.compile("[a-zA-Z0-9_\-]+", flags=re.A) diff --git a/files/routes/settings.py b/files/routes/settings.py index c7dfd7bf3..6afb9fb45 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -890,7 +890,7 @@ def settings_pronouns_change(v): if not FEATURES['PRONOUNS']: abort(403) - pronouns = request.values.get("pronouns").replace("𒐪","").lower().strip() + pronouns = request.values.get("pronouns").replace("𒐪","").strip() if len(pronouns) > 11: return render_template("settings_profile.html", v=v, error="Your pronouns exceed the character limit (11 characters)") diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 9a5db7429..4ba7fac7d 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -473,7 +473,7 @@