Skip to content

Commit

Permalink
Fix issue handling IDs that only contain numbers
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
ymherklotz committed May 16, 2024
1 parent 68dc980 commit 301a701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zettelkasten.el
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Meant for displaying when searching."
The note may be formatted with some title, which this function
aims to remove."
(string-match (format "[^0-9]*\\(%s\\)" zettelkasten-id-regexp) note)
(string-match (format "^\\(%s\\)" zettelkasten-id-regexp) note)
(match-string 1 note))

(defun zettelkasten--format-link (note &optional link-text)
Expand Down

0 comments on commit 301a701

Please sign in to comment.