Skip to content

Commit

Permalink
Apply suggestion from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
Yash-Singh1 and mdjermanovic committed Dec 1, 2021
1 parent 9f42bdf commit 8d96676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/prefer-regex-literals.js
Expand Up @@ -332,7 +332,7 @@ module.exports = {
noFix = true;
}

if (!/^[-a-zA-Z0-9\\[\](){}\s!@#$%^&*+^_=/~`.><?,'"|:;]*$/u.test(regexContent)) {
if (!/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.><?,'"|:;]*$/u.test(regexContent)) {
noFix = true;
}

Expand Down

0 comments on commit 8d96676

Please sign in to comment.