@ne1410s/cust-elems
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -27,3 +27,3 @@ 'use strict'; | ||
function reduceHtml(htmlIn) { | ||
return htmlIn.replace(/\s+/g, ' ').replace(/>\s</g, '><'); | ||
return htmlIn.replace(/\s+/g, ' ').replace(/(^|>)\s+(<|$)/g, '$1$2'); | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -23,5 +23,5 @@ class CustomElementBase extends HTMLElement { | ||
function reduceHtml(htmlIn) { | ||
return htmlIn.replace(/\s+/g, ' ').replace(/>\s</g, '><'); | ||
return htmlIn.replace(/\s+/g, ' ').replace(/(^|>)\s+(<|$)/g, '$1$2'); | ||
} | ||
export { CustomElementBase, decode, reduceCss, reduceHtml }; |
@@ -29,3 +29,3 @@ (function (global, factory) { | ||
function reduceHtml(htmlIn) { | ||
return htmlIn.replace(/\s+/g, ' ').replace(/>\s</g, '><'); | ||
return htmlIn.replace(/\s+/g, ' ').replace(/(^|>)\s+(<|$)/g, '$1$2'); | ||
} | ||
@@ -32,0 +32,0 @@ |
{ | ||
"name": "@ne1410s/cust-elems", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "ES Custom Elements base functionality", | ||
@@ -5,0 +5,0 @@ "main": "dist/ne14_cust_elems.cjs.min.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
6586