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

no-profanity

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-profanity - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

3

lib/no-profanity.js

@@ -23,3 +23,4 @@ const { list: baseList } = require("./en.js");

const matches = [];
const regex = new RegExp(`\\b(${wordList.join("|")})\\b`, "ig");
const replacedWordList = wordList.map((word) => word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"));
const regex = new RegExp(`\\b(${replacedWordList.join("|")})\\b`, "ig");
let match;

@@ -26,0 +27,0 @@

{
"name": "no-profanity",
"version": "1.4.1",
"version": "1.4.2",
"description": "A JavaScript package to detect and filter profanity",

@@ -5,0 +5,0 @@ "main": "./lib/no-profanity.js",

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