dfsdfs
parent
cfc6b8a3d4
commit
a27e651744
|
@ -193,7 +193,6 @@ def sanitize(sanitized, noimages=False):
|
|||
new = old.lower()
|
||||
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', new):
|
||||
emoji = i.group(1).lower()
|
||||
print(emoji)
|
||||
if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'):
|
||||
new = re.sub(f'\w*(?<!"):{emoji}:', f'<img loading="lazy" data-bs-toggle="tooltip" alt=":{emoji}:" title=":{emoji}:" delay="0" height=60 src="https://{site}/assets/images/emojis/{emoji}.webp">', new)
|
||||
|
||||
|
@ -202,7 +201,6 @@ def sanitize(sanitized, noimages=False):
|
|||
|
||||
for i in re.finditer('\w*(?<!")!([^ ]{1,30}?)!', new):
|
||||
emoji = i.group(1).lower()
|
||||
print(emoji)
|
||||
if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'):
|
||||
new = re.sub(f'\w*(?<!")!{emoji}!', f'<img loading="lazy" data-bs-toggle="tooltip" alt="!{emoji}!" title="!{emoji}!" delay="0" height=60 src="https://{site}/assets/images/emojis/{emoji}.webp" style="transform: scaleX(-1)">', new)
|
||||
|
||||
|
|
Loading…
Reference in New Issue