Commit 9b71d0c 1 parent 4221bf6 commit 9b71d0c Copy full SHA for 9b71d0c
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const flipAndAuthors = (authors) =>
18
18
// -------------------
19
19
20
20
const fetchArxivXML = async ( paperId ) => {
21
- const arxivId = paperId . replace ( "Arxiv-" , "" ) ;
21
+ const arxivId = paperId . replace ( "Arxiv-" , "" ) . replace ( "_" , "/" ) ;
22
22
return fetch (
23
23
"https://export.arxiv.org/api/query?" +
24
24
new URLSearchParams ( { id_list : arxivId } )
@@ -304,14 +304,14 @@ const makeArxivPaper = async (url) => {
304
304
year +
305
305
firstNonStopLowercase ( title ) ;
306
306
307
- const id = `Arxiv-${ arxivId } ` ;
307
+ const id = `Arxiv-${ arxivId . replace ( "/" , "_" ) } ` ;
308
308
309
309
let bibtex = "" ;
310
310
bibtex += `@article{${ key } ,\n` ;
311
311
bibtex += ` title={${ title } },\n` ;
312
312
bibtex += ` author={${ author } },\n` ;
313
313
bibtex += ` year={${ year } },\n` ;
314
- bibtex += ` journal={arXiv preprint arXiv: ${ id } }\n` ;
314
+ bibtex += ` journal={arXiv preprint arXiv: ${ arxivId } }\n` ;
315
315
bibtex += `}` ;
316
316
317
317
const venue = "" ;
You can’t perform that action at this time.
0 commit comments