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

bad-words

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bad-words - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.6.4"></a>
## [1.6.4](https://github.com/web-mech/badwords/compare/v1.6.3...v1.6.4) (2018-09-21)
### Bug Fixes
* **isProfane:** Adding regex word boundary for isProfane ([3908f3c](https://github.com/web-mech/badwords/commit/3908f3c))
<a name="1.6.3"></a>

@@ -7,0 +17,0 @@ ## [1.6.3](https://github.com/web-mech/badwords/compare/v1.6.2...v1.6.3) (2018-08-02)

2

lib/badwords.js

@@ -29,3 +29,3 @@ var localList = require('./lang.json').words;

return string
.split(' ')
.split(/\b/)
.map(function(w) {

@@ -32,0 +32,0 @@ return w.toLowerCase().replace(this.regex, '');

{
"name": "bad-words",
"version": "1.6.3",
"version": "1.6.4",
"description": "A javascript filter for bad words",

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

@@ -34,3 +34,7 @@ require('assert');

});
it('Should tokenize words according to regex word boundaries', function() {
assert(filter.isProfane("that person is an\nasshole"));
})
});
});
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