Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaving blank lines isn't very pretty. #36

Open
phreezer opened this issue Jan 28, 2015 · 0 comments
Open

Leaving blank lines isn't very pretty. #36

phreezer opened this issue Jan 28, 2015 · 0 comments

Comments

@phreezer
Copy link

Leaving blank lines makes my code look like swiss cheese so I just added some changes to remove the blank lines that the script leaves behind. It's a quick fix for my situation where all my logs are single lines.

rConsole = new RegExp("(\r?\n|\r)?(\\s*)?(" + opts.namespace.join("|") + ")" + ".(?:" + opts.methods.join("|") + ")\\s{0,}\\([^;]*\\)(?!\\s*[;,]?\\s*\\/\\*\\s*RemoveLogging:skip\\s*\\*\\/)\\s{0,};?(\r?\n|\r)?", "gi");


src = src.replace(rConsole, function() {
    counter++;
    return opts.replaceWith || "\r\n";
});

Can an option to remove the line the log was on completely be added in future releases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant