Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmlfy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlfy - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc