Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): set inputNamePattern to RegExp source instead of string #2201

Merged

Commits on Oct 24, 2022

  1. fix(cli): set inputNamePattern to RegExp source instead of string

    using RegExp.toString() returns a valid regex string (with / at the beginning and the end of the string), but when this value is reused as RegExp constructor, it tries to covert the string value in to regex, causing the those / to be escaped.
    actual: /foo/ /\/foo\// /\/\/foo\/\//
    expected: /bar/ /bar/ /bar/
    rafedramzi committed Oct 24, 2022
    Copy the full SHA
    ff90219 View commit details
    Browse the repository at this point in the history