Skip to content

Commit 301a701

Browse files
committed
Fix issue handling IDs that only contain numbers
Fixes #11
1 parent 68dc980 commit 301a701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zettelkasten.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Meant for displaying when searching."
9797
9898
The note may be formatted with some title, which this function
9999
aims to remove."
100-
(string-match (format "[^0-9]*\\(%s\\)" zettelkasten-id-regexp) note)
100+
(string-match (format "^\\(%s\\)" zettelkasten-id-regexp) note)
101101
(match-string 1 note))
102102

103103
(defun zettelkasten--format-link (note &optional link-text)

0 commit comments

Comments
 (0)