settings: Show typeahead for pronouns type custom profile field.

User can add any pronouns in this field, but we just show some
commonly used pronouns as suggestions in typeahead.
This commit is contained in:
Sahil Batra
2022-10-03 23:35:09 +05:30
committed by Tim Abbott
parent 2bf70fe4db
commit aaa5d5cb0e
4 changed files with 33 additions and 1 deletions

View File

@@ -116,6 +116,10 @@ IGNORED_PHRASES = [
"Notification Bot",
# Used in presence_enabled setting label
r"invisible mode off",
# Typeahead suggestions for "Pronouns" custom field type.
r"he/him",
r"she/her",
r"they/them",
]
# Sort regexes in descending order of their lengths. As a result, the