Add regex eslint plugin, fix lints (#59371)

This commit is contained in:
Jake Bailey
2024-08-13 14:16:53 -07:00
committed by GitHub
parent a5e0385edf
commit 195203e971
47 changed files with 236 additions and 92 deletions
+1 -1
View File
@@ -3762,7 +3762,7 @@ function convertJsonOptionOfListType(
* \*\* # matches the recursive directory wildcard "**".
* \/?$ # matches an optional trailing directory separator at the end of the string.
*/
const invalidTrailingRecursionPattern = /(^|\/)\*\*\/?$/;
const invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/;
/**
* Matches the portion of a wildcard path that does not contain wildcards.