Giter Club home page Giter Club logo

Comments (2)

PurpleOrb avatar PurpleOrb commented on August 24, 2024

I suppose it wasn't implemented, but I can't say I understand all the code. I added this bit after line 38 in audiosprite.js and it seems to work.

//expand filelist for each wildcard
var newfiles = [];
var _i;
var _filename;
var _ext;
var _dir = process.cwd();
//opts.logger.info ( "current dir", { dir: _dir } );
var _dirfiles = fs.readdirSync ( _dir );
//opts.logger.info('Dirfiles', { length: _dirfiles.length });
for ( _i in files ) {
    _filename = files [ _i ];
    if ( _filename.indexOf ( "*." ) === 0 ) {
        _ext = _filename.slice ( 1 );
        opts.logger.debug('Wildcard found at', { file: _filename, extension: _ext });
        var _j;
        for ( _j in _dirfiles ) {
            if ( path.extname ( _dirfiles [ _j ] )  === _ext ) {
                newfiles.push ( _dirfiles [ _j ] );
                opts.logger.debug('file added to list', { file: _dirfiles [ _j ] } );
            }
        }
    }
    else {
        newfiles.push ( files [ _i ] );
    }       
}
files = newfiles;

from audiosprite.

zlumer avatar zlumer commented on August 24, 2024

Fixed in #41 (v.0.6.0 on npm)

from audiosprite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.