Comparing version 0.1.3 to 0.1.4
@@ -82,3 +82,3 @@ var entityCode = require('./entityCode') | ||
function trimLeading(text) { | ||
return text ? text.replace(/\n\s*/g, '') : '' | ||
return text ? text.replace(/\r?\n\s*/g, '') : '' | ||
} | ||
@@ -89,3 +89,3 @@ | ||
function trimTag(tag) { | ||
return tag.replace(/(?:\n\s*)+/g, '\n') | ||
return tag.replace(/(?:\r?\n\s*)+/g, '\n') | ||
} | ||
@@ -92,0 +92,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "./lib/index.js", | ||
@@ -11,0 +11,0 @@ "dependencies": {}, |
15773