Skip to content

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

Description

@kod3000

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 ;)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions