File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ function transformPath(dirname, replacement) {
116116 const escapedWinPath = RegExp . escape ( winPath ) ;
117117
118118 // Use negative lookahead to prevent matching if followed by alphanumeric or underscore
119- const urlEncodedRegex = new RegExp ( escapedUrlEncoded + '(?![\\w/ ])' , flags ) ;
120- const dirnameRegex = new RegExp ( escapedDirname + '(?![\\w/ ])' , flags ) ;
121- const winPathRegex = new RegExp ( escapedWinPath + '(?![\\w/ ])' , flags ) ;
119+ const urlEncodedRegex = new RegExp ( escapedUrlEncoded + '(?![\\w])' , flags ) ;
120+ const dirnameRegex = new RegExp ( escapedDirname + '(?![\\w])' , flags ) ;
121+ const winPathRegex = new RegExp ( escapedWinPath + '(?![\\w])' , flags ) ;
122122
123123 return ( str ) => {
124124 return str . replaceAll ( '\\\'' , "'" )
You can’t perform that action at this time.
0 commit comments