Skip to content

Commit 5ae7d29

Browse files
committed
rev 4.0 has longer content hashes
1 parent 9a58631 commit 5ae7d29

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)