webpack-merge-and-include-globally icon indicating copy to clipboard operation
webpack-merge-and-include-globally copied to clipboard

Bug in regex in method that includes hash value to filename

Open tray2002 opened this issue 6 years ago • 3 comments

On line 30 in index.js there is not escaped dot (.) in (.min): const match = existingFileName.match(/-([0-9a-f]+)(.min)?(.\w+)(.map)?$/);

which results to append hash value before any 'min' text such as 'dmin' in 'admin'.

tray2002 avatar Jan 07 '19 09:01 tray2002

thanks for noticing, fixed it.

markshapiro avatar Jan 07 '19 10:01 markshapiro

Sorry to bother, but there is another (.min) in line 76. Could you fix it too?

tray2002 avatar Jan 07 '19 10:01 tray2002

yes, my bad.

markshapiro avatar Jan 07 '19 10:01 markshapiro