You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
When specifying e.g. --exclude /*.hbs/ to exclude handlebars files, it will be passed as a string and not as an object which would be required by the following code:
// index.jsnodes.forEach(function(v){// ignore filtervarm;for(varn=0;n<ignoreLen;n++){m=_exclude[n];if(typeofm==='string'&&m===v){return;}elseif(typeofm==='object'&&m.test(v)){return;}}// process filetmpPath=path.join(source,v);tmpDest=path.join(dest,v);self.processFile(tmpPath,tmpDest,exclude,option);});}
I temporarily fixed this by patching the jscoverage bin file:
// bin/jscoverage, Line 25for(vari=0,l=exclude.length;i<l;i++){varcurrentExclude=exclude[i];if(currentExclude[0]==='/'){varlastSlash=currentExclude.lastIndexOf('/');varmatchPattern=currentExclude.substr(1,lastSlash-1);exclude[i]=newRegExp(matchPattern);}}
But didn't figure out yet where to put this within the original source to make a pull request ;)
The text was updated successfully, but these errors were encountered:
When specifying e.g.
--exclude /*.hbs/
to exclude handlebars files, it will be passed as a string and not as an object which would be required by the following code:I temporarily fixed this by patching the jscoverage bin file:
But didn't figure out yet where to put this within the original source to make a pull request ;)
The text was updated successfully, but these errors were encountered: