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

isprofanity

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isprofanity - npm Package Compare versions

Comparing version

to
1.0.9

2

isProfanity.js

@@ -63,3 +63,3 @@ fs = require('fs');

x = wagnerFischer(swear.toLowerCase(),word.toLowerCase());
if(x < (swear.length-2) && exceptions.indexOf(word.toLowerCase()) === -1){
if(x < (swear.length/2) && exceptions.indexOf(word.toLowerCase()) === -1){
containsASwear = true;

@@ -66,0 +66,0 @@ blockedWords.push(word);

{
"name": "isprofanity",
"version": "1.0.8",
"version": "1.0.9",
"description": "A profanity checker which, unlike alternatives, uses the Wagner–Fischer algorithm in order to catch variations that you haven't thought of. ",

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