Skip to content

multiline /*@cc_on \n - raises "Unterminated RegExp Literal" #19

@zuci42

Description

@zuci42

While minimizing some js found an issue:

multilne coniditional comments like

/@cc_on
try { if (!window.XMLHttpRequest) document.body.className += ' ie6';} catch(e) {} @
/

error ActionView::Template::Error (Unterminated RegExp Literal) (javascript.rb:168)
raised after /n char in "/*@cc_on\n"

i see closed issue about cc, but that one covers oneliners only

Regretfully i am still not so tough to fix your code quick.
I preffered to use workaround and convert my cc to oneliners already.

Would be cool if someone could manage with that.

BR, & thank for the gem, greatest one as it requires nothing except ruby. no java & no additional tags to use.

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