leny/grunt-todo — pull request #2 by zachwolf (2014-01-26 02:25:57+00:00)
Title: removes regex param from result print out

Hey again :)

I had another quick idea of removing the regex match from the string result. Currently it'll print something like this:

test/test.html

line 93 TODO

test/test.js

line 17 TODO // TODO Hey, i'm here !
line 42 TODO // TODO define method for AJAX request

test/test.styl

line 26 TODO // TODO add aliases for these
line 30 BURP // BURP Oops, sorry.

Removing the regex match would result in something like this:

test/test.html

line 95 TODO Hey, look ! I'm a todo in a TODO !!! -->

test/test.js

line 17 TODO Hey, i'm here !
line 42 TODO define method for AJAX request

test/test.styl

line 26 TODO add aliases for these
line 30 BURP Oops, sorry.

It doesn't remove the end of the HTML comment, but this will work without and context of what a valid line comment is.

What do you think? (I promise no more pull requests tonight)