inukshuk / bibtex-ruby

A BibTeX library, parser, and converter for Ruby.
http://inukshuk.github.com/bibtex-ruby
GNU General Public License v3.0
156 stars 31 forks source link

Syntax error in regular expression #55

Closed RubenVerborgh closed 12 years ago

RubenVerborgh commented 12 years ago

The gem fails in Ruby 1.8 with error message:

SyntaxError: /usr/lib/ruby/gems/1.8/gems/bibtex-ruby-2.0.11/lib/bibtex/lexer.rb:63: nested *?+ in regexp: /[[:alpha:]\d \/:_!$\?\.%&\*-]+*,/

In 1.9, you get the warning:

/Users/ruben/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36: warning: nested repeat operator + and * was replaced with '*': /[[:alpha:]\d \/:_!$\?\.%&\*-]+*,/

This commit corrects the regular expression.