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

textlint-rule-terminology

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-terminology - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

9

index.js

@@ -24,3 +24,3 @@ // @ts-check

// Create a seprate regexp of each array rule ([pattern, replacement])
// Create a separate regexp of each array rule ([pattern, replacement])
const advancedRules = terms.filter(rule => typeof rule !== 'string');

@@ -99,3 +99,8 @@

if (Array.isArray(exclude)) {
return listTerms.filter(term => !exclude.includes(term));
return listTerms.filter(term => {
if (Array.isArray(term)) {
return !exclude.includes(term[0]);
}
return !exclude.includes(term);
});
}

@@ -102,0 +107,0 @@ return listTerms;

{
"name": "textlint-rule-terminology",
"version": "2.1.4",
"version": "2.1.5",
"description": "TextLint rule to check correct terms spelling",

@@ -5,0 +5,0 @@ "author": {

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