Permalink
Browse files

Normalize line endings to work better on windows

  • Loading branch information...
1 parent 4dd0355 commit 627f0c45f3ebf70e9a5d740c0e39201b85f80127 @ForbesLindesay ForbesLindesay committed May 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/dox.js
View
3 lib/dox.js
@@ -1,4 +1,3 @@
-
/*!
* Module dependencies.
*/
@@ -24,6 +23,8 @@ exports.version = '0.3.1';
exports.parseComments = function(js, options){
options = options || {};
+ //normalize line endings
+ js = js.replace(/\r\n/gm, '\n');
var comments = []
, raw = options.raw

0 comments on commit 627f0c4

Please sign in to comment.