ansi-to-html
Advanced tools
Comparing version 0.6.13 to 0.6.14
@@ -464,3 +464,3 @@ "use strict"; | ||
}, { | ||
pattern: /^\r\n/, | ||
pattern: /^\r+\n/, | ||
sub: newline | ||
@@ -467,0 +467,0 @@ }, { |
{ | ||
"name": "ansi-to-html", | ||
"version": "0.6.13", | ||
"version": "0.6.14", | ||
"description": "Convert ansi escaped text streams to html.", | ||
@@ -73,2 +73,6 @@ "main": "lib/ansi_to_html.js", | ||
"url": "https://github.com/lior-chervinsky" | ||
}, | ||
{ | ||
"name": "Maple Miao", | ||
"url": "https://github.com/mapleeit" | ||
} | ||
@@ -75,0 +79,0 @@ ], |
@@ -44,2 +44,9 @@ const {expect} = require('chai'); | ||
it('returns plain text when given plain text with multi CR', function (done) { | ||
const text = 'testCRLF\r\r\r\ntest'; | ||
const result = 'testCRLF\r\r\r\ntest'; | ||
return test(text, result, done); | ||
}); | ||
it('renders foreground colors', function (done) { | ||
@@ -336,2 +343,9 @@ const text = 'colors: \x1b[30mblack\x1b[37mwhite'; | ||
it('renders windows styled line breaks (multi CR+LF)', function (done) { | ||
const text = 'testCRLF\r\r\r\ntestLF'; | ||
const result = 'testCRLF<br/>testLF'; | ||
return test(text, result, done, {newline: true}); | ||
}); | ||
it('renders multiple line breaks', function (done) { | ||
@@ -338,0 +352,0 @@ const text = 'test\n\ntest\n'; |
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
40226
954