Comparing version 1.2.0 to 1.2.1
@@ -79,2 +79,6 @@ 'use strict'; | ||
return [renderEntity(entityKey, entity), entity.indices[0], entity.indices[1]]; | ||
}) | ||
// do not add anything unknown | ||
.filter(function (data) { | ||
return null !== data[0]; | ||
}))); | ||
@@ -81,0 +85,0 @@ }); |
13
index.js
@@ -60,7 +60,10 @@ function escapeMarkdownPart(input) { | ||
replacements.push( | ||
...entities[entityKey].map(entity => [ | ||
renderEntity(entityKey, entity), | ||
entity.indices[0], | ||
entity.indices[1] | ||
]) | ||
...entities[entityKey] | ||
.map(entity => [ | ||
renderEntity(entityKey, entity), | ||
entity.indices[0], | ||
entity.indices[1] | ||
]) | ||
// do not add anything unknown | ||
.filter(data => null !== data[0]) | ||
); | ||
@@ -67,0 +70,0 @@ }); |
{ | ||
"name": "tweet.md", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Render tweet to markdown", | ||
@@ -5,0 +5,0 @@ "main": "index.es5.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
9338
173