Skip to content

Commit

Permalink
Also replace intial : in file field.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmalsburg committed Apr 22, 2016
1 parent ac50302 commit 62593c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bibtex-completion.el
Expand Up @@ -405,9 +405,8 @@ file is specified, or if the specified file does not exist, or if
(let ((value (replace-regexp-in-string "\\([^\\]\\);" "\\1\^^" value)))
(cl-loop ; Looping over the files:
for record in (s-split "\^^" value)
; Replace unescaped colons by something that is unlikely to
; appear otherwise (later used for splitting):
for record = (replace-regexp-in-string "\\([^\\]\\):" "\\1\^_" record)
; Replace unescaped colons by field separator:
for record = (replace-regexp-in-string "\\([^\\]\\|^\\):" "\\1\^_" record)
; Unescape stuff:
for record = (replace-regexp-in-string "\\\\\\(.\\)" "\\1" record)
; Now we can safely split:
Expand Down

0 comments on commit 62593c6

Please sign in to comment.