Skip to content

Commit 29d9a38

Browse files
committed
Merge pull request #5 from leereamsnyder/master
rev 4.0 has longer content hashes
2 parents 9a58631 + 5ae7d29 commit 29d9a38

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
@@ -11,7 +11,7 @@ function plugin(keepQuantity) {
1111
var lists = {};
1212

1313
return through.obj(function (file, enc, cb) {
14-
var regex = new RegExp('^(.*)-[0-9a-f]{8}(?:\\.min)?\\' + path.extname(file.path) + '$');
14+
var regex = new RegExp('^(.*)-[0-9a-f]{8,10}(?:\\.min)?\\' + path.extname(file.path) + '$');
1515
if (regex.test(file.path)) {
1616
var identifier = regex.exec(file.path)[1] + path.extname(file.path);
1717
if (lists[identifier] === undefined) {

0 commit comments

Comments
 (0)