@dreamworld/web-util
Advanced tools
Comparing version 1.3.1-trim-html-is-not-woking-with-nested-html.3 to 1.3.1-trim-html-is-not-woking-with-nested-html.4
@@ -48,2 +48,3 @@ import textToHtml from './textToHtml'; | ||
childNodes = Array.from(el.childNodes || []); | ||
if(!trimStart && childNodes && childNodes[0]) { | ||
@@ -102,2 +103,3 @@ trimStartTextNode(childNodes[0]); | ||
//If text node is not found | ||
childNodes = Array.from(el.childNodes || []).reverse(); | ||
if(!trimEnd && childNodes && childNodes[0]) { | ||
@@ -104,0 +106,0 @@ trimEndTextNode(childNodes[0]); |
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.3.1-trim-html-is-not-woking-with-nested-html.3", | ||
"version": "1.3.1-trim-html-is-not-woking-with-nested-html.4", | ||
"description": "", | ||
@@ -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
10865
202