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

markdownlint-rule-search-replace

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdownlint-rule-search-replace - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"name": "markdownlint-rule-search-replace",
"version": "1.0.8",
"version": "1.0.9",
"description": "A custom markdownlint rule for search and replaces",

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

@@ -76,3 +76,4 @@ # markdownlint-rule-search-replace

Note, `search` and `searchPattern` are interchangeable. The property `search` is used if both are supplied.
Properties are case-sensitive and are in camel case.\
**Note:** `search` and `searchPattern` are interchangeable. The property `search` is used if both are supplied.

@@ -79,0 +80,0 @@ In patterns, to escape characters use `\\`. For example,

@@ -178,2 +178,6 @@ // @ts-check

for (const rule of rules) {
if (!rule.search && !rule.searchPattern) {
throw new Error("Provide either `search` or `searchPattern` option.");
}
const regex = rule.search

@@ -180,0 +184,0 @@ ? new RegExp(escapeForRegExp(rule.search), "g")

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