(minor)refactor: make prefix checking clearer (#1951)

This commit is contained in:
Tianshu Wang
2021-11-09 15:25:31 +08:00
committed by GitHub
parent 239929045f
commit 01c45f9dca
2 changed files with 2 additions and 2 deletions

View File

@ -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))