apcshields / autocomplete-bibtex

Adds Pandoc-style BibTeX citation key autocompletion to autocomplete+ for Atom.
MIT License
44 stars 17 forks source link

Update provider.coffee #14

Closed tpoisot closed 9 years ago

tpoisot commented 9 years ago

If there is a single bibtex file, change that into an array.

This solves issue #12 -- Here is what happens: when the bibtex field in config is a single line instead of an array, the package is parsing each letter or the string as a file.

The fix is simply checking that the bibtex file is a string, and if so, create a single-element arrray