Skip to content

Commit

Permalink
fix(_prepare.el): Accept error for downcase
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 6, 2023
1 parent 970ee8a commit 5993cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/_prepare.el
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ The function `directory-empty-p' only exists 28.1 or above; copied it."

(defun eask--guess-package-name (basename)
"Convert the BASENAME to a valid, commonly seen package name."
(when-let ((name (downcase basename)))
(when-let ((name (ignore-errors (downcase basename))))
(setq name (eask-s-replace "emacs-" "" name)
name (eask-s-replace "-emacs" "" name)
name (replace-regexp-in-string "[.-]el$" "" name))
Expand Down

0 comments on commit 5993cb7

Please sign in to comment.