Skip to content

Commit

Permalink
Update file path + name regex
Browse files Browse the repository at this point in the history
Updated regex so we don't have a possible
super-linear problem. (even though we handle file system paths not input)
  • Loading branch information
caalador committed Dec 4, 2020
1 parent 6dd25aa commit 6d93000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow-server/src/main/resources/webpack.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ module.exports = {
name(resourcePath, resourceQuery) {
const urlResource = resourcePath.substring(frontendFolder.length);
if(urlResource.match(themePartRegex)){
return /[\s\S]*(\\|\/)theme\1[\s\S]*?\1(.*)/.exec(resourcePath)[2];
return /^(\\|\/)theme\1[\s\S]*?\1(.*)/.exec(urlResource)[2];
}
return '[path][name].[ext]';
}
Expand Down

0 comments on commit 6d93000

Please sign in to comment.