Skip to content

Modernizr minify causes "Unterminated RegExp Literal" error. #20

@matthewrudy

Description

@matthewrudy

Not sure if this is the same issue as #19,
but Modernizr is a popular enough project that this seems to be a real problem.

require 'open-uri'
require 'smurf'

modernizr = open("https://raw.github.com/Modernizr/Modernizr/master/modernizr.js")

Smurf::Javascript.new(modernizr.read)

# RuntimeError: Unterminated RegExp Literal
# from ~/.rvm/gems/ruby-1.9.3-p0@global/gems/smurf-1.0.8/lib/smurf/javascript.rb:168:in `action'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions