Skip to content

The /^<!--/ regExp causes bug when injecting js to html #7298

Closed
@mengjian-github

Description

@mengjian-github

Version

undefined

Reproduction link

https://jsfiddle.net/xjtumj/u04ornp4/

Steps to reproduce

when injecting vue to html, there is nothing to show in android webview.

try to replace /^<!--/ with /^<!\--/, the showing turns to be right.

suggest to escape the expression.

What is expected?

render correctly

What is actually happening?

not render correctly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions