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
I got 3 errors here, one of them: '.*' can be removed because it is already included by '.*'.(regexp/optimal-quantifier-concatenation).
After applying the fix:
/^(?!.*(?=-)(?=.*,)).*$/.test('1,2-3');// true ✗
Further autofixes give the same false positive result:
/^(?!.*(?=-).+,).*$/.test('1,2-3');// true ✗
The text was updated successfully, but these errors were encountered:
Information:
eslint-plugin-regexp
version: 2.5.0Description
Current regex is
/^(?!.*(?=.*-)(?=.*,)).*$/
(disallow usage of both comma and dash).I got 3 errors here, one of them:
'.*' can be removed because it is already included by '.*'.(regexp/optimal-quantifier-concatenation)
.After applying the fix:
Further autofixes give the same false positive result:
The text was updated successfully, but these errors were encountered: