diff --git a/jest/hasteImpl.js b/jest/hasteImpl.js index ffbb053584bc3c..eae413a937df2f 100644 --- a/jest/hasteImpl.js +++ b/jest/hasteImpl.js @@ -27,7 +27,7 @@ const pluginRoots /*: Array */ = haste.providesModuleNodeModules.map( ); const pluginNameReducers /*: Array<[RegExp, string]> */ = haste.platforms.map( - name => [new RegExp(`^(.*)\.(${name})$`), '$1'], + name => [new RegExp(`^(.*)\\.(${name})$`), '$1'], ); const ROOTS = [path.resolve(__dirname, '..') + path.sep, ...pluginRoots];