Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/getBibCodeFromObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function fieldsAreOk(object) {
// ========== All fields are ok ['entryType', 'key', 'data'] ==========
// Now let's move to check for valid fields for any specific entry type
const entryType = object.entryType; // Checks entry type etc.
const bibtex = require('./BibTeX');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BibTeX should be spelled with captial X (see https://en.wikipedia.org/wiki/BibTeX). Thus, this fix seems to be a quick fix. Could you fix it in the other way so taht this require statement works?

const bibtex = require('./BibTex');
const bib = new bibtex();

const entryTypeFields = bib.getSpecificEntryTypeFields(entryType);
Expand Down Expand Up @@ -294,4 +294,4 @@ function fieldsAreOk(object) {
}
}
]
*/
*/