diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mastodon-toot.el | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 06c49a3..d1e8cbe 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -614,8 +614,8 @@ To use the downloaded emoji, run `mastodon-toot--enable-custom-emoji'."                      (shortcode (alist-get 'shortcode x)))                  ;; skip anything that contains unexpected characters                  (when (and url shortcode -                           (string-match-p "^[a-zA-Z0-9-_]*$" shortcode) -                           (string-match-p "^[a-zA-Z]*$" (file-name-extension url))) +                           (string-match-p "^[a-zA-Z0-9-_]+$" shortcode) +                           (string-match-p "^[a-zA-Z]+$" (file-name-extension url)))                    (url-copy-file url                                   (concat                                    mastodon-custom-emoji-dir  | 
