summaryrefslogtreecommitdiff
path: root/parsebib.el
diff options
context:
space:
mode:
authorJoost Kremers <joostkremers@fastmail.fm>2017-03-10 23:18:52 +0100
committerJoost Kremers <joostkremers@fastmail.fm>2017-03-10 23:18:52 +0100
commitfb5d64cae07d6b2d93ad10fdeda3336fb6ca0973 (patch)
tree400931cae0e35642d9518848428c6fc91aa9077f /parsebib.el
parent4f05fae56fb5efb5d94237b2163f6ad7007e7204 (diff)
BibTeX keys / identifiers must be at least one character long.
Diffstat (limited to 'parsebib.el')
-rw-r--r--parsebib.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsebib.el b/parsebib.el
index 077487f..c97ce26 100644
--- a/parsebib.el
+++ b/parsebib.el
@@ -43,8 +43,8 @@
(require 'cl-lib)
(require 'subr-x) ; for `string-join'.
-(defconst parsebib--bibtex-identifier "[^^\"@\\&$#%',={}() \t\n\f]*" "Regexp describing a licit BibTeX identifier.")
-(defconst parsebib--key-regexp "[^^\"@\\&$#%',={} \t\n\f]*" "Regexp describing a licit key.")
+(defconst parsebib--bibtex-identifier "[^^\"@\\&$#%',={}() \t\n\f]+" "Regexp describing a licit BibTeX identifier.")
+(defconst parsebib--key-regexp "[^^\"@\\&$#%',={} \t\n\f]+" "Regexp describing a licit key.")
(defconst parsebib--entry-start "^[ \t]*@" "Regexp describing the start of an entry.")
;; Emacs 24.3 compatibility code.