You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
The 'quotemark' rule threw an error in 'test.ts':
SyntaxError: Invalid regular expression: /\\)/: Unmatched ')'
at new RegExp (<anonymous>)
at cb (...\tslint\lib\rules\quotemarkRule.js:106:33)
...
Expected behavior
No error.
Looks like the same issue as #3073 and #4181 but those issues got closed as there was no reproducible case.
The text was updated successfully, but these errors were encountered:
Ha, thanks for the repro @mjomble! Quotemark bugs have been popping up every now and then...
If the problem is that new RegExp(\\\\${actualQuoteMark}, "g") is taking in an invalid string "/\\)/", it seems like it would be a pretty quick fix to add a case to the actualQuoteMark === expectedQuoteMark if statement to return early if the actualQuoteMark is not a ', ", or ```.
* Add quotemark type validation to allow early return (#4310)
* Fix no-unsafe-any linting error in quotemark rule
* Separate invalid quote tests into new tests
* Fixed introduced build break
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
TypeScript code being linted
('a)
with
tslint.json
configuration:Actual behavior
Expected behavior
No error.
Looks like the same issue as #3073 and #4181 but those issues got closed as there was no reproducible case.
The text was updated successfully, but these errors were encountered: