New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-util

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-util - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

lib/index.js

@@ -82,3 +82,3 @@ var entityCode = require('./entityCode')

function trimLeading(text) {
return text ? text.replace(/\n\s*/g, '') : ''
return text ? text.replace(/\r?\n\s*/g, '') : ''
}

@@ -89,3 +89,3 @@

function trimTag(tag) {
return tag.replace(/(?:\n\s*)+/g, '\n')
return tag.replace(/(?:\r?\n\s*)+/g, '\n')
}

@@ -92,0 +92,0 @@

@@ -8,3 +8,3 @@ {

},
"version": "0.1.3",
"version": "0.1.4",
"main": "./lib/index.js",

@@ -11,0 +11,0 @@ "dependencies": {},

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