Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: ./helpers/magicrocco.rb:128: undefined (?...) sequence: /(?<code>.*[^\n$])(?<end>\n|$)/ #164

Open
kod3000 opened this issue Apr 1, 2013 · 1 comment

Comments

@kod3000
Copy link

kod3000 commented Apr 1, 2013

Installing the master branch.. this error shows up..

Screen Shot 2013-04-01 at 12 06 41 AM

It can be fixed by adding missing quotation marks in line 128 of the file ' helpers/magicrocco.rb '

just replace this line

  map { |code| code.gsub(/(?<code>.*[^\n$])(?<end>\n|$)/,"<span class='one-line'>" + '\k<code>' + "</span>" + '\k<end>') }

with this one

  map { |code| code.gsub("/(?<code>.*[^\n$])(?<end>\n|$)/" + "<span class='one-line'>" + '\k<code>' + "</span>" + '\k<end>') }

hope this helps.. this project is magic if you manage to get it working ;)

@runemadsen
Copy link
Owner

Thanks! If you have time, a pull request would be awesome. This app was started a year ago, and there's probably a few things that need to be tweaked to make it go.

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

No branches or pull requests

2 participants