1.0.3 • Published 3 years ago

george-profanity-filter v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

George's profanity filter

I have created this as a node package. Therefore, it can be used in a few ways.

Best way, i'd suggest, is to use RunKit https://npm.runkit.com/george-profanity-filter

It works with all examples in the specification. Here's a few colourful submissions of my own:

georgeProfanityFilter.filter(`
  TURKEY
  How could you do that? You turkey.
  I hope there are enough turkeys to go around this christmas.
  My neighbour, i hear, cooks up a mean turkey sandwich.
`);
georgeProfanityFilter.filter(`
  pina colada
  Too many Pina Coladas...
  There is one too many Colada in this Pina.
  Pina Colada for you. Pina Colada for you too.
`);

Footnotes:

  • I couldn't get splice working hence the re-assign on line 22.
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago