mirror of
https://github.com/danbulant/pngjs
synced 2026-06-20 15:01:33 +00:00
pick up nolarge no matter how many spec files there are
This commit is contained in:
parent
79465895af
commit
1c817dbb9d
1 changed files with 3 additions and 1 deletions
|
|
@ -2,11 +2,13 @@ var fs = require('fs');
|
|||
var PNG = require('../lib/png').PNG;
|
||||
var test = require('tape');
|
||||
|
||||
var noLargeOption = process.argv.indexOf("nolarge") >= 0;
|
||||
|
||||
fs.readdir(__dirname + '/in/', function (err, files) {
|
||||
if (err) throw err;
|
||||
|
||||
files = files.filter(function (file) {
|
||||
return ((process.argv[3] || "").indexOf("nolarge") < 0 || !file.match(/large/i)) && Boolean(file.match(/\.png$/i));
|
||||
return (noLargeOption || !file.match(/large/i)) && Boolean(file.match(/\.png$/i));
|
||||
});
|
||||
|
||||
console.log("Converting images");
|
||||
|
|
|
|||
Loading…
Reference in a new issue