We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06033a1 + c43fb67 commit c7a3e0cCopy full SHA for c7a3e0c
packages/jest-util/src/index.js
@@ -37,7 +37,7 @@ const escapePathForRegex = (dir: string) => {
37
};
38
39
const escapeStrForRegex =
40
- (string: string) => string.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
+ (string: string) => string.replace(/[[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
41
42
const replacePathSepForRegex = (string: string) => {
43
if (path.sep === '\\') {
0 commit comments