forked from MarseyWorld/MarseyWorld
Minor fix for pronouns logic.
parent
2b07c7ee9f
commit
c385e12f9d
|
@ -101,7 +101,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]{1-5}\/[a-z]{1-5}", flags=re.A)
|
||||
pronouns_regex = re.compile("[a-z]{1,5}/[a-z]{1,5}", flags=re.A)
|
||||
|
||||
def sub_matcher(match, upper=False):
|
||||
if match.group(0).startswith('<'):
|
||||
|
|
|
@ -464,9 +464,9 @@
|
|||
<label class="text-black w-lg-25">Pronouns</label>
|
||||
|
||||
<div class="w-lg-100">
|
||||
<form id="profile-settings" action="/settings/pronoun_change" method="post">
|
||||
<form id="profile-settings" action="/settings/pronouns_change" method="post">
|
||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||
<input maxlength=9 autocomplete="off" id="pronounbody" type="text" name="pronouns" class="form-control" placeholder='Enter pronouns here' value="{% if v.pronouns %}{{v.pronouns}}{% endif %}">
|
||||
<input maxlength=11 autocomplete="off" id="pronounbody" type="text" name="pronouns" class="form-control" placeholder='Enter pronouns here' value="{% if v.pronouns %}{{v.pronouns}}{% endif %}">
|
||||
<div class="d-flex mt-2">
|
||||
<small>{1-5 characters} / {1-5 characters}</small>
|
||||
<input autocomplete="off" class="btn btn-primary ml-auto" id="pronounsSave" type="submit" onclick="disable(this)" value="Change Pronouns">
|
||||
|
|
Loading…
Reference in New Issue