Skip to content

String special char(', ", `) in script comment will not render unless closed #2

@oskar-anderson

Description

@oskar-anderson

I am not sure if this is intentional, but having a javascript comment that contains a single string start-end char(', ", `) will cause the rendering to fail:

        let x = `<p>RazorExpress test</p>
                 <script>
                     // don't
                 <\/script>`
        let rendered = raz.render(template);

Response: "Error: '<script>' tag at line 2 pos 18 is missing matching end tag."
For comparison this would work with EJS.

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