racist
v1.0.6
Published
A regular expression for matching racial slurs.
Downloads
15
Readme
Racist Regex
A regular expression for matching racial slurs.
Installation
$ npm install racist
Usage
const racist = require('racist');
// Exact string comparison
racist({exact: true}).test('niqker'); // true
racist({exact: true}).test('LOL niqq3r'); // false
// Default string comparison
racist().test('n1kger'); // true
racist().test('strawberries'); //false
Contribute
- Do you want me to add some words? Contact me!