racist

1.0.6 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i racist

Weekly Downloads

2

Version

1.0.6

License

ISC

Last publish

Collaborators

  • jake