Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/bin/pack
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const bundle = (process.argv[3] || 'bundle');
* @return {RegExp} The regular expression for the name,
*/
function fileRegExp(name) {
return new RegExp(name.replace(/([\\.{}[\]()?*^$])/g, '\\$1'), 'g');
return new RegExp(name.replace(/([\\.{}[\]()?*+^$])/g, '\\$1'), 'g');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion components/webpack.common.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DIRNAME = __dirname;
* @return {string} The string with regex special characters escaped
*/
function quoteRE(string) {
return string.replace(/([\\.{}[\]()?*^$])/g, '\\$1');
return string.replace(/([\\.{}[\]()?*+^$])/g, '\\$1');
}

/****************************************************************/
Expand Down