Skip to content

Commit

Permalink
Update lib/linter/linter.js
Browse files Browse the repository at this point in the history
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
aladdin-add and mdjermanovic committed Jun 3, 2021
1 parent 4fd6945 commit d1a01a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter/linter.js
Expand Up @@ -444,7 +444,7 @@ function normalizeEcmaVersion(ecmaVersion) {
return ecmaVersion >= 2015 ? ecmaVersion - 2009 : ecmaVersion;
}

const eslintEnvPattern = /\/\*\s*eslint-env\s([\s\S]+?)\*\//gu;
const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)\*\//gsu;

/**
* Checks whether or not there is a comment which has "eslint-env *" in a given text.
Expand Down

0 comments on commit d1a01a2

Please sign in to comment.