Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopmacher/bad-words

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopmacher/bad-words - npm Package Compare versions

Comparing version 3.0.6 to 3.0.7

7

lib/badwords.js

@@ -35,3 +35,8 @@ const localList = require('./lang.json').words;

.filter((word) => {
if (string.includes(word)) {
return true;
}
const wordExp = new RegExp(`\\b${word.replace(/(\W)/g, '\\$1')}\\b`, 'gi');
return !this.exclude.includes(word.toLowerCase()) && wordExp.test(string);

@@ -89,2 +94,2 @@ })

module.exports = Filter;
module.exports = Filter;

2

package.json
{
"name": "@shopmacher/bad-words",
"version": "3.0.6",
"version": "3.0.7",
"description": "A javascript filter for bad words",

@@ -5,0 +5,0 @@ "main": "./lib/badwords",

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