react-htmlcontent
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -31,3 +31,3 @@ 'use strict'; | ||
var config = arguments[2]; | ||
return typeof data === 'string' ? data.replace(/([^<]*)(\s?<[A-z]+[^>]*>)([\s\S]*?)\s?(<\/[A-z]+>\s?)([^<]*)/gi, function (_, beforeTag, startTag, body, endTag, afterTag) { | ||
return data && typeof data === 'string' ? data.replace(/([^<]*)(\s?<[A-z]+[^>]*>)([\s\S]*?)\s?(<\/[A-z]+>\s?)([^<]*)/gi, function (_, beforeTag, startTag, body, endTag, afterTag) { | ||
if (/(<[A-z]+[^>]*>)(.*?)(<\/[A-z]+>)/g.test(body)) { | ||
@@ -34,0 +34,0 @@ return enhanceTypoInHTML(body); |
{ | ||
"name": "react-htmlcontent", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "React HTMLContent Component", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
524830