From 34ff052b46e37cf16709bb6b553e8a3d6b5153ca Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 27 Sep 2018 11:56:42 -0400 Subject: [PATCH] Adjust regex fed to RegExp https://github.com/facebook/create-react-app/pull/4169#issuecomment-425145384 --- config/webpack.config.prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 55692cbf38a..43322611f17 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -499,7 +499,7 @@ module.exports = { new RegExp('^/_'), // Exclude URLs containing a dot, as they're likely a resource in // public/ and not a SPA route - new RegExp('/[^/]+[.][^/]+$'), + new RegExp('/[^/]+\\.[^/]+$'), ], }), ],