aboutsummaryrefslogtreecommitdiff
path: root/lisp/seam.el
diff options
context:
space:
mode:
authorSpencer Williams <spnw@plexwave.org>2025-04-17 15:02:20 -0400
committerSpencer Williams <spnw@plexwave.org>2025-04-17 15:02:20 -0400
commit2e1ae69f61449f74f816176d92bd790fbd9dc358 (patch)
treea893e30e8287ae14cd6d608d185e5176f3f4ed0b /lisp/seam.el
parent9222a9b277359ae53bbc7026dc2d6a4d6c95a926 (diff)
Fix improper handling of titles with single quotesHEADmain
Diffstat (limited to 'lisp/seam.el')
-rw-r--r--lisp/seam.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/seam.el b/lisp/seam.el
index 72f12e2..4cc21e7 100644
--- a/lisp/seam.el
+++ b/lisp/seam.el
@@ -72,7 +72,10 @@ naming. Must be a function taking two arguments: TITLE and TYPE."
(mapcar #'car seam-export-alist))
(defun seam-slugify (title)
- (downcase (string-join (string-split title "\\W+" t) "-")))
+ (setq title (string-replace "'" "" title))
+ (setq title (string-split title "\\W+" t))
+ (setq title (string-join title "-"))
+ (downcase title))
(defun seam-lookup-slug (slug)
(cl-dolist (type seam-note-types)