Skip to content

Commit

Permalink
chore(no-commented-out-tests): remove unneeded escape and improve reg…
Browse files Browse the repository at this point in the history
…ex (#421)
  • Loading branch information
G-Rath committed Oct 5, 2019
1 parent 6606018 commit e4275c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-commented-out-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';
import { createRule } from './utils';

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

0 comments on commit e4275c5

Please sign in to comment.