Skip to content

Commit

Permalink
remove initial : from regexp
Browse files Browse the repository at this point in the history
this caused an extra space to be matched.
  • Loading branch information
jkitchin committed Jan 16, 2016
1 parent 528f847 commit 9a5b3c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions org-ref.el
Expand Up @@ -479,21 +479,21 @@ If so return the position for `goto-char'."


(defvar org-ref-cite-re
(concat "[^:]\\(" (mapconcat
(concat "\\(" (mapconcat
(lambda (x)
(replace-regexp-in-string "\*" "\\\\*" x))
org-ref-cite-types "\\|") "\\)"
":\\([a-zA-Z0-9-_:\\./]*,?\\)*")
":\\([a-zA-Z0-9-_:\\./]+,?\\)+")
"Regexp for cite links.")


(defvar org-ref-label-re
"[^:]label:\\([a-zA-Z0-9-_:]*,?\\)*"
"label:\\([a-zA-Z0-9-_:]+,?\\)+"
"Regexp for label links.")


(defvar org-ref-ref-re
"[^:]\\(eq\\)?ref:\\([a-zA-Z0-9-_:]*,?\\)*"
"\\(eq\\)?ref:\\([a-zA-Z0-9-_:]+,?\\)+"
"Regexp for ref links.")


Expand Down

0 comments on commit 9a5b3c9

Please sign in to comment.