Comparing version 0.0.1 to 0.0.2
'use strict'; | ||
exports = function(str, isXhtml) { | ||
module.exports = function(str, isXhtml) { | ||
var breakTag = (isXhtml || typeof isXhtml === 'undefined') ? '<br />' : '<br>'; | ||
return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); | ||
}; |
{ | ||
"name": "nl2br", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A NodeJS module for converting newlines to line breaks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2571