ehynds / grunt-remove-logging

Grunt.js task for removing console logging statements
MIT License
192 stars 33 forks source link

The regex is deleting more than the console.log line #1

Closed gunta closed 11 years ago

gunta commented 12 years ago

Hi! This task is very useful. I've found a bug in the regex:

If the console.log() doesn't has a semicolon at the end, it removes the following lines.

Thank you!

ehynds commented 12 years ago

I'm not able to reproduce this, and there are a few tests that don't have a trailing semicolon that pass. Can you post a failing example?