Closed jheer closed 8 years ago
Thanks! I added an additional check; the method is for convenience since you ought to use open/parse directly depending on your input. Having said that, I changed the jekyll-scholar code in question to do just that.
Thanks!
I'm using jekyll-scholar with a large bibtex file and ran into an error that I tracked down into bibtex-ruby.
The offending line is lib/bibtex/utilities.rb#L33. If the
string
input is so long as to be an invalid file name, theFile.exists?
call raises an error. A length check to ensure the string is not too long seems to suffice to fix the issue. That said, having the method change its behavior based on the string content (rather than an option) seems rather dangerous in general.