remove leftover code breaking shit

pull/195/head
Aevann 2023-08-14 14:56:55 +03:00
parent 28c031d3c6
commit c20513b7ca
4 changed files with 3 additions and 5 deletions

View File

@ -1037,8 +1037,6 @@ forced_hats = {
}
EMAIL_REGEX_PATTERN = '[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{2,63}\.[A-Za-z]{2,63}'
IMAGE_FORMATS = ('png','jpg','jpeg','webp','gif')
VIDEO_FORMATS = ('mp4','webm','mov','avi','mkv','flv','m4v','3gp')
AUDIO_FORMATS = ('mp3','wav','ogg','aac','m4a','flac')

View File

@ -56,7 +56,7 @@ emoji_regex2 = re.compile(f'(?<!"):([!#@\w\-]{{1,72}}?):(?!([^<]*<\/(code|pre)>|
snappy_url_regex = re.compile('<a href="(https?:\/\/.+?)".*?>(.+?)<\/a>', flags=re.A)
snappy_youtube_regex = re.compile('<lite-youtube videoid="(.+?)" params="autoplay=1', flags=re.A)
email_regex = re.compile(EMAIL_REGEX_PATTERN, flags=re.A)
email_regex = re.compile('[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{2,63}\.[A-Za-z]{2,63}', flags=re.A)
slur_regex = re.compile(f"<[^>]*>|{slur_single_words}", flags=re.I|re.A)
slur_regex_upper = re.compile(f"<[^>]*>|{slur_single_words.upper()}", flags=re.A)

View File

@ -8,7 +8,7 @@
<label for="username" class="mt-3">Username</label>
<input autocomplete="off" class="form-control" id="username" type="text" name="username" required>
<label for="email" class="mt-3">Email</label>
<input type="email" pattern='{{EMAIL_REGEX_PATTERN}}' autocomplete="off" class="form-control" id="password" name="email" required>
<input type="email" autocomplete="off" class="form-control" id="password" name="email" required>
<input autocomplete="off" class="btn btn-primary login w-100 mt-3" type="submit" value="Send recovery link">
</form>
</div>

View File

@ -77,7 +77,7 @@
<small class="d-inline-block text-muted ml-1">(optional, but you'll need it if you forget your password)</small>
<input style="background-color: var(--gray-800)" autocomplete="off" class="form-control" id="email-register" type="email" pattern='{{EMAIL_REGEX_PATTERN}}' name="email" readonly data-nonce="{{g.nonce}}" {% if email %}value="{{email}}"{% endif %}>
<input style="background-color: var(--gray-800)" autocomplete="off" class="form-control" id="email-register" type="email" name="email" readonly data-nonce="{{g.nonce}}" {% if email %}value="{{email}}"{% endif %}>
<label for="password-register" class="mt-3">Password</label>