Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ character causes crash #3

Open
aubertc opened this issue Mar 17, 2023 · 0 comments
Open

@ character causes crash #3

aubertc opened this issue Mar 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@aubertc
Copy link
Owner

aubertc commented Mar 17, 2023

Cf.

<pre id="bibtex" style="display:none;">
Un commentaire.
@proceedings{test,
title = {Ce titre contient un @ . }
}
</pre>

Firefox's console gives me this output:

jQuery.Deferred exception: this.raiseError is not a function parse@file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:1054:25
initialize@file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2294:16
Bib2HTML@file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2288:14
bibtexify@file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2525:13
@file:///home/caubert/travail/git/bib-publication-list/test/html/bug_fr.html:50:19
e@https://code.jquery.com/jquery-3.6.1.min.js:2:30038
Deferred/then/l/</t<@https://code.jquery.com/jquery-3.6.1.min.js:2:30340
 undefined jquery-3.6.1.min.js:2:31593
Uncaught TypeError: this.raiseError is not a function
    parse file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:1054
    initialize file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2294
    Bib2HTML file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2288
    bibtexify file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2525
    <anonymous> file:///home/caubert/travail/git/bib-publication-list/test/html/bug_fr.html:50
    jQuery 2
        e
        t
bib-list.js:1054:25
    parse file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:1054
    initialize file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2294
    Bib2HTML file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2288
    bibtexify file:///home/caubert/travail/git/bib-publication-list/build/bib-list.js:2525
    <anonymous> file:///home/caubert/travail/git/bib-publication-list/test/html/bug_fr.html:50
    jQuery 2
        e
        t

If I remove the comment or the @ character, then the file is processed just fine. No idea what is causing that, but since it's a very corner case…

@aubertc aubertc added the bug Something isn't working label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant