Permalink
Browse files

Changed line comment regex to handle CR+LF or LF.

  • Loading branch information...
1 parent aa6f423 commit 3b03fbf4f706ae9ee8e5b76fa6e42709b25a590e @stevenbenner stevenbenner committed with shama Mar 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/lib/comment.js
View
@@ -17,7 +17,7 @@ exports.init = function(/*grunt*/) {
var m = [];
if (options.line) {
// Strip // ... leading banners.
- m.push('(?:.*\\/\\/.*\\n)*\\s*');
+ m.push('(?:.*\\/\\/.*\\r?\\n)*\\s*');
}
if (options.block) {
// Strips all /* ... */ block comment banners.

0 comments on commit 3b03fbf

Please sign in to comment.