Permalink
Browse files

Merge pull request #54 from Tuskan360/patch-1

Normalize line endings to work better on windows
  • Loading branch information...
2 parents 4dd0355 + f6efa13 commit 5a031ec2d446e24dff3673ceab778c80d2d8bbd9 @tj committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dox.js
View
@@ -1,4 +1,3 @@
-
/*!
* Module dependencies.
*/
@@ -24,6 +23,7 @@ exports.version = '0.3.1';
exports.parseComments = function(js, options){
options = options || {};
+ js = js.replace(/\r\n/gm, '\n');
var comments = []
, raw = options.raw

0 comments on commit 5a031ec

Please sign in to comment.