RazorExpress icon indicating copy to clipboard operation
RazorExpress copied to clipboard

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

Open oskar-anderson opened this issue 3 years ago • 0 comments

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: '

oskar-anderson avatar Dec 24 '21 20:12 oskar-anderson