Skip to content

Commit 2d45781

Browse files
committed
Merge pull request #4 from tuurbo/master
make identifier more unique
2 parents a30e0ac + 391bd4a commit 2d45781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function plugin(keepQuantity) {
1313
return through.obj(function (file, enc, cb) {
1414
var regex = new RegExp('^(.*)-[0-9a-f]{8}(?:\\.min)?\\' + path.extname(file.path) + '$');
1515
if (regex.test(file.path)) {
16-
var identifier = regex.exec(file.path)[1];
16+
var identifier = regex.exec(file.path)[1] + path.extname(file.path);
1717
if (lists[identifier] === undefined) {
1818
lists[identifier] = [];
1919
}

0 commit comments

Comments
 (0)