Skip to content

Commit

Permalink
Merge pull request #4 from tuurbo/master
Browse files Browse the repository at this point in the history
make identifier more unique
  • Loading branch information
shonny-ua committed Oct 6, 2014
2 parents a30e0ac + 391bd4a commit 2d45781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function plugin(keepQuantity) {
return through.obj(function (file, enc, cb) {
var regex = new RegExp('^(.*)-[0-9a-f]{8}(?:\\.min)?\\' + path.extname(file.path) + '$');
if (regex.test(file.path)) {
var identifier = regex.exec(file.path)[1];
var identifier = regex.exec(file.path)[1] + path.extname(file.path);
if (lists[identifier] === undefined) {
lists[identifier] = [];
}
Expand Down

0 comments on commit 2d45781

Please sign in to comment.