mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(minor)refactor: make prefix checking clearer (#1951)
This commit is contained in:
@ -470,7 +470,7 @@ INFO is the org-element parsed buffer."
|
||||
(let (rows)
|
||||
(dolist (ref refs)
|
||||
(save-match-data
|
||||
(cond ((string-equal (substring ref 0 1) "@")
|
||||
(cond ((string-prefix-p "@" ref)
|
||||
(push (vector node-id (substring ref 1) "cite") rows))
|
||||
((string-match org-link-plain-re ref)
|
||||
(push (vector node-id (match-string 2 ref) (match-string 1 ref)) rows))
|
||||
|
Reference in New Issue
Block a user