Skip to content

Commit e4275c5

Browse files
authored
chore(no-commented-out-tests): remove unneeded escape and improve regex (#421)
1 parent 6606018 commit e4275c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/no-commented-out-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';
22
import { createRule } from './utils';
33

44
function hasTests(node: TSESTree.Comment) {
5-
return /^\s*(x|f)?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/m.test(
5+
return /^\s*[xf]?(test|it|describe)(\.\w+|\[['"]\w+['"]\])?\s*\(/m.test(
66
node.value,
77
);
88
}

0 commit comments

Comments
 (0)