File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const bundle = (process.argv[3] || 'bundle');
4242 * @return {RegExp } The regular expression for the name,
4343 */
4444function fileRegExp ( name ) {
45- return new RegExp ( name . replace ( / ( [ \\ . { } [ \] ( ) ? * ^ $ ] ) / g, '\\$1' ) , 'g' ) ;
45+ return new RegExp ( name . replace ( / ( [ \\ . { } [ \] ( ) ? * + ^ $ ] ) / g, '\\$1' ) , 'g' ) ;
4646}
4747
4848/**
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const DIRNAME = __dirname;
3535 * @return {string } The string with regex special characters escaped
3636 */
3737function quoteRE ( string ) {
38- return string . replace ( / ( [ \\ . { } [ \] ( ) ? * ^ $ ] ) / g, '\\$1' ) ;
38+ return string . replace ( / ( [ \\ . { } [ \] ( ) ? * + ^ $ ] ) / g, '\\$1' ) ;
3939}
4040
4141/****************************************************************/
You can’t perform that action at this time.
0 commit comments