Skip to content

Commit

Permalink
Chore: Fix RegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
wafuwafu13 committed Aug 28, 2021
1 parent 698f3c2 commit d637c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.js
Expand Up @@ -823,9 +823,9 @@ target.checkRuleFiles = function() {
*/
function hasDeprecatedInfo() {
const ruleCode = cat(filename);
const deprecatedTagRegExp = new RegExp("@deprecated in ESLint", "u");
const deprecatedTagRegExp = /@deprecated in ESLint/u;
const docText = cat(docFilename);
const deprecatedInfoRegExp = new RegExp("This rule was .+deprecated.+in ESLint", "u");
const deprecatedInfoRegExp = /This rule was .+deprecated.+in ESLint/u;

return deprecatedTagRegExp.test(ruleCode) && deprecatedInfoRegExp.test(docText);
}
Expand Down

0 comments on commit d637c94

Please sign in to comment.