fix long emojis

master
Aevann1 2022-07-03 10:00:42 +02:00
parent 35c44616bb
commit 6c8bcc0bda
2 changed files with 3 additions and 3 deletions

View File

@ -45,8 +45,8 @@ strikethrough_regex = re.compile('(^|\s|>)~{1,2}([^~]+)~{1,2}', flags=re.A)
mute_regex = re.compile("/mute @([a-z0-9_\-]{3,25}) ([0-9])+", flags=re.A)
emoji_regex = re.compile(f"<p>\s*(:[!#@]{{0,3}}[{valid_username_chars}]+:\s*)+<\/p>", flags=re.A)
emoji_regex2 = re.compile(f'(?<!"):([!#@{valid_username_chars}]{{1,34}}?):', flags=re.A)
emoji_regex3 = re.compile(f'(?<!"):([!@{valid_username_chars}]{{1,34}}?):', flags=re.A)
emoji_regex2 = re.compile(f'(?<!"):([!#@{valid_username_chars}]{{1,36}}?):', flags=re.A)
emoji_regex3 = re.compile(f'(?<!"):([!@{valid_username_chars}]{{1,35}}?):', flags=re.A)
snappy_url_regex = re.compile('<a href="(https?:\/\/.+?)".*?>(.+?)<\/a>', flags=re.A)

View File

@ -22,7 +22,7 @@ set CACHE_VER = {
'js/emoji_modal.js': 297,
'js/formatting.js': 240,
'js/lottery.js': 256,
'js/marked.js': 275,
'js/marked.js': 276,
'js/submit.js': 265,
'js/userpage.js': 241,
'js/userpage_v.js': 245,