isprofanity
Advanced tools
Comparing version 1.2.8 to 1.3.0
@@ -74,2 +74,3 @@ fs = require('fs'); | ||
async.each(strings,function(word,callback) { | ||
word = word.replace(/\b[-.,()&$#!\[\]{}"']+\B|\B[-.,()&$#!\[\]{}"']+\b/g, ""); | ||
var WorstSwear = new Word(); | ||
@@ -76,0 +77,0 @@ var mostlikelyexception = new Word(); |
{ | ||
"name": "isprofanity", | ||
"version": "1.2.8", | ||
"version": "1.3.0", | ||
"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", |
var isprofanity = require('./isProfanity.js'); | ||
var ta =['gobshite']; | ||
var ta =['Hello my friend! Thanks! for the help.']; | ||
@@ -4,0 +4,0 @@ ta.forEach(function(tstring) { |
3720823
100