Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Normalize line endings to work better on windows

  • Loading branch information...
commit 627f0c45f3ebf70e9a5d740c0e39201b85f80127 1 parent 4dd0355
Forbes Lindesay ForbesLindesay authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/dox.js
3  lib/dox.js
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.