consoleStripper

18 views
Skip to first unread message

Yehonatan Moses

unread,
May 27, 2013, 9:47:35 AM5/27/13
to wr...@googlegroups.com
hi,

any reported issues on that stripper?

seems like the regex doesn't catch stuff like window.console.log..

taken from the jquery.form.js

before:

var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');
if (window.console && window.console.log) {
window.console.log(msg);
}
else if (window.opera && window.opera.postError) {
window.opera.postError(msg);
}


after:

var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.}
else if(window.opera&&window.opera.postError){window.opera.postError(msg);}};})(jQuery);



any chance on fixing the regex to be something like (window.console|console).(log|debug|info|count)(\(.*)\)
?


Cheers,
Yoni

Alex Objelean

unread,
May 27, 2013, 9:51:27 AM5/27/13
to wr...@googlegroups.com
Please, open an issue and it will be fixed for next release.

Cheers,
Alex


--
You received this message because you are subscribed to the Google Groups "wro4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wro4j+un...@googlegroups.com.
To post to this group, send email to wr...@googlegroups.com.
Visit this group at http://groups.google.com/group/wro4j?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages