chore: update bib2json.js

occurences -> occurrences
This commit is contained in:
Ikko Eltociear Ashimine 2024-07-02 12:57:17 +09:00 committed by GitHub
parent a419fdf1a8
commit b7c074d3e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,7 +563,7 @@ BibtexParser.prototype.processCharacter_ = function (c) {
doneParsingValue = true doneParsingValue = true
} else { } else {
// sometimes imported bibs will have {\},{\\}, {\\\}, {\\\\}, etc for whitespace, // sometimes imported bibs will have {\},{\\}, {\\\}, {\\\\}, etc for whitespace,
// which would otherwise break the parsing. we watch for these occurences of // which would otherwise break the parsing. we watch for these occurrences of
// 1+ backslashes in an empty bracket pair to gracefully handle the malformed bib file // 1+ backslashes in an empty bracket pair to gracefully handle the malformed bib file
const doubleSlash = const doubleSlash =
valueCharsArray.length >= 2 && valueCharsArray.length >= 2 &&