Skip to content

Commit

Permalink
liferay#1251 Change logic from liferay#1236 so that we're actually co…
Browse files Browse the repository at this point in the history
…nverting the backslashes into the proper regular expression format that they need to be in
  • Loading branch information
gregory-bretall committed Apr 26, 2019
1 parent bc5ccac commit 94b5775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.common.js
Expand Up @@ -16,7 +16,7 @@ function toAbsolute(rootRelativePath) {
* "test" properties.
*/
function toTestRegExp(file) {
return new RegExp(path.normalize(file).replace(/\\/g, '\\'));
return new RegExp(path.normalize(file).replace(/\\/g, '\\\\'));
}

const base = {
Expand Down

0 comments on commit 94b5775

Please sign in to comment.