Comparing version 1.6.3 to 1.6.4
@@ -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) |
@@ -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")); | ||
}) | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23615
664