Skip to content

Commit bc42342

Browse files
committed
Update issue_to_bibtex.py
1 parent 56af35f commit bc42342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/issue_to_bibtex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
i += 1
135135

136136
if not duplicate:
137-
bib = re.sub(r'(@[a-z]*{)(.*),', r'\1' + id + ',', bib)
137+
bib = re.sub(r'(@[a-z]*{)(.*?),', r'\1' + id + ',', bib)
138138
url_bad = re.search(r'url\s*=\s*{(.*)}', bib).groups()[0]
139139
bib = re.sub(r'(url\s*=\s*{)(.*)}', r'\1' + urllib.parse.unquote(url_bad) + '}', bib)
140140
bib_db = bibtexparser.loads(bib)

0 commit comments

Comments
 (0)