Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Updated no-control-regex tests to cover all cases (fixes #6438) (
#6752) toString prints out different outputs for /\x01/ and "/\x01/". Because of that behavior, no-control-regex rule was broken before(fixed on 141b778). During the fix I added a test to cover the case I wrote for fix. Which was also passing when the fix was not there. The test was on a string literal unfortunately which was not covering the test case where regex is written on a literal (like /\x01/). Changed the tests to make sure it covers the literal regex's as expected.
- Loading branch information