Comparing version 1.1.1 to 1.1.2
@@ -70,5 +70,9 @@ "use strict"; | ||
if (added) { | ||
p = s.map(t => c(t, 'green')).join(b(' ', 'green')); | ||
p = s.map(t => { | ||
return t.replace(/\n$/mg, '\n⏎'); | ||
}).map(t => c(t, 'green')).join(b(' ', 'green')); | ||
} else if (removed) { | ||
p = s.map(t => c(t, 'red')).join(b(' ', 'red')); | ||
p = s.map(t => { | ||
return t.replace(/\n$/mg, '\n⏎'); | ||
}).map(t => c(t, 'red')).join(b(' ', 'red')); | ||
} else { | ||
@@ -75,0 +79,0 @@ p = c(value, 'grey'); |
@@ -0,1 +1,7 @@ | ||
## 15 May 2018 | ||
### 1.1.2 | ||
- [feature] indicate new lines better | ||
## 12 May 2018 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "erte", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "String difference with colour for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "build", |
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
5925
70