Skip to content

Commit

Permalink
make sure the extension is string before downcase
Browse files Browse the repository at this point in the history
  • Loading branch information
ilupin authored and kaushalmodi committed Dec 3, 2021
1 parent 8bdfa0e commit 88e6068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ox-hugo.el
Expand Up @@ -2171,9 +2171,9 @@ and rewrite link paths to make blogging more seamless."
" " ;" </span>"
;; Escape the double-quotes, if any.
(replace-regexp-in-string "\"" "\\\\\"" caption))))
(extension (downcase (file-name-extension raw-path)))
(extension (file-name-extension raw-path))
(inlined-svg (and (stringp extension)
(string= "svg" extension)
(string= "svg" (downcase extension))
(plist-get attr :inlined))))
;; (message "[ox-hugo-link DBG] Inline image: %s, extension: %s" raw-path extension)
;; (message "[ox-hugo-link DBG] inlined svg? %S" inlined-svg)
Expand Down

0 comments on commit 88e6068

Please sign in to comment.