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

markdown-magic

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-magic - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

6

lib/utils/regex.js
"use strict" // eslint-disable-line
/*eslint-disable */
module.exports.matchCommentBlock = function(matchWord) {
return new RegExp(`(?:\\<\\!--(?:.|\\n)*?${matchWord}:START(?:.|\\n)*?\\()(.*)\\)(?:.|\\n)*?<!--(?:.|\\n)*?${matchWord}:END(?:.|\\n)*?--\\>`, 'g')
return new RegExp(`(?:\\<\\!--(?:.|\\r?\\n)*?${matchWord}:START(?:.|\\r?\\n)*?\\()(.*)\\)(?:.|\\r?\\n)*?<!--(?:.|\\r?\\n)*?${matchWord}:END(?:.|\\r?\\n)*?--\\>`, 'g')
}
module.exports.matchOpeningCommentTag = function (matchWord) {
return new RegExp(`(\\<\\!--(?:.|\\n)*?${matchWord}:START)((?:.|\\n)*?--\\>)`, 'g')
return new RegExp(`(\\<\\!--(?:.|\\r?\\n)*?${matchWord}:START)((?:.|\\r?\\n)*?--\\>)`, 'g')
}
module.exports.matchClosingCommentTag = function (matchWord) {
return new RegExp(`((?:\\<\\!--(?:.*|\\n)(?:.*|\\n))*?${matchWord}:END)((?:.|\\n)*?--\\>)`, 'g')
return new RegExp(`((?:\\<\\!--(?:.*|\\r?\\n)(?:.*|\\r?\\n))*?${matchWord}:END)((?:.|\\r?\\n)*?--\\>)`, 'g')
}
{
"name": "markdown-magic",
"version": "0.1.15",
"version": "0.1.16",
"description": "Automatically update markdown files with content from external sources",

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

@@ -13,2 +13,3 @@ # Markdown Magic

- Automatically generate a table of contents
- ... etc

@@ -197,3 +198,3 @@ This `README.md` is generated with `markdown-magic` [view the raw file](https://raw.githubusercontent.com/DavidWells/markdown-magic/master/README.md) to see how.

* [version-badge](https://github.com/camacho/markdown-magic-version-badge) - Add a badge with the latest version of the project
* [template] (https://github.com/camacho/markdown-magic-template) - Add Lodash template support
* [template](https://github.com/camacho/markdown-magic-template) - Add Lodash template support

@@ -200,0 +201,0 @@ ## Custom Transforms

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