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

find-conditional-comments

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-conditional-comments - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

index.js

@@ -1,2 +0,2 @@

const CONDITIONAL_COMMENT_REGEX = /(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\n)*?)(<!\[endif\]\2>)/gi;
const CONDITIONAL_COMMENT_REGEX = /(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;

@@ -3,0 +3,0 @@ module.exports = function findConditionalComments(str) {

{
"name": "find-conditional-comments",
"version": "0.0.2",
"version": "0.0.3",
"description": "Finds all conditional comments in a string",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -58,4 +58,5 @@ # find-conditional-comments

* [preserve-comment-whitespace](https://www.npmjs.com/package/preserve-comment-whitespace)
* [regex-empty-conditional-comments](https://www.npmjs.com/package/regex-empty-conditional-comments)
* [posthtml-mso](https://www.npmjs.com/package/posthtml-mso)
* [html-comment-regex](https://www.npmjs.com/package/html-comment-regex)

Sorry, the diff of this file is not supported yet

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