Skip to content

Escape literal whitespace within Heregex (not a dup!) #3059

Description

@summivox

I've read #1668 and #2668.
Can we have \ followed by whitespace within heregex as literal whitespace (\x20)?

Example:

re =
  ///
  <link\ href=\"
  ([^"]*)
  \">
  ///

should compile to:

re = /<link\ href=\"([^"]*)\">/

current impl:

re = /<link\href=\"([^"]*)\">/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions