Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "htmlfy", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "HTML formatter yo!. Prettify, minify, and more!", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -10,3 +10,3 @@ import { CONFIG } from './constants.js' | ||
export const hasHtml = (content) => { | ||
const regex = /<[A-Za-z]+[^>]*>(?:.|\n)*?<\/{1}[A-Za-z]+[^>]*>/ | ||
const regex = /<(?<Element>[A-Za-z]+\b)[^>]*(?:.|\n)*?<\/{1}\k<Element>>/ | ||
return regex.test(content) | ||
@@ -13,0 +13,0 @@ } |
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
18910