mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-21 20:54:27 +00:00
Fix formatting
This commit is contained in:
parent
d9b9f596d3
commit
441e3d90b1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def _load_emojis(root_dir: Path, base_url: str) -> None:
|
|||
mt = mimetypes.guess_type(emoji.name)[0]
|
||||
if mt and mt.startswith("image/"):
|
||||
name = emoji.name.split(".")[0]
|
||||
if not re.match(EMOJI_REGEX, f':{name}:'):
|
||||
if not re.match(EMOJI_REGEX, f":{name}:"):
|
||||
continue
|
||||
ap_emoji: "RawObject" = {
|
||||
"type": "Emoji",
|
||||
|
|
Loading…
Reference in a new issue