Skip to content

Fix regular expression for ruby 1.8 compatibility#14

Open
emyl wants to merge 1 commit into
wycats:masterfrom
emyl:patch-1
Open

Fix regular expression for ruby 1.8 compatibility#14
emyl wants to merge 1 commit into
wycats:masterfrom
emyl:patch-1

Conversation

@emyl

@emyl emyl commented Apr 13, 2012

Copy link
Copy Markdown

Without escaping curly braces all commands fail with the following error on ruby 1.8:

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /var/lib/gems/1.8/gems/guides-0.7.2/lib/guides/indexer.rb:49: invalid regular expression; there's no previous pattern, to which '{' would define cardinality at 1: /{{(.*?)}}/ (SyntaxError)
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /var/lib/gems/1.8/gems/guides-0.7.2/lib/guides/generator.rb:56
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /var/lib/gems/1.8/gems/guides-0.7.2/lib/guides.rb:7
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /var/lib/gems/1.8/gems/guides-0.7.2/bin/guides:3
        from /var/lib/gems/1.8/bin/guides:19:in `load'
        from /var/lib/gems/1.8/bin/guides:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant