Couto / groundskeeper

node.js package to remove forgotten console statements and specific blocks of code from you Javascript files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Partial matching console.log

premii opened this issue · comments

It is skipping or partially matching some console.log

Replaced partially:

console.log("loadImageInCache():::::", index+1, index+1 % 2) ---> :::::", index+1, index+1 % 2);
console.log("external() open()", url, scrollee); ---> open()", url, scrollee);

Didn't match-skipped:

console.log('all duplicates, get more');

It's partially matching because of the closing parenthesis inside the .log()'s arguments
Can't see any reason to skip the last example but I will take a further look.

Thank's for reporting, I'll be working on this ticket today.

According to my tests, I've just fixed your particular case.
You can find the latest version in npm (version 0.0.3)

npm update groundskeeper -g

Please contact, if you find any more bugs... Meanwhile I'll leave this ticket open.

Tested and it works now.