Skip to content

Custom comment tags with unescaped chars break the regex #13

@vzhou842

Description

@vzhou842

Comment tags with parentheses don't work. For example, this loader:

{
  loader: 'webpack-strip-block',
  options: {
    start: 'remove(code)',
    end: 'remove(code)'
  }
}

won't work correctly because it breaks the underlying regex. Any similar unescaped char would probably also break the regex.

If this is intended (allow users to write regex fragments?) it should be documented in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions