firebase / functions-samples

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase
https://firebase.google.com/docs/functions
Apache License 2.0
12k stars 3.83k forks source link

feat: use faster profanity checker #1095

Open Topener opened 11 months ago

Topener commented 11 months ago

I've replaced the bad-words package with the no-profanity package as the bad-words package has not been updated for a few years and uses a for-loop to detect profanity instead of a single regex. This slows the package down significantly.

Furthermore, the no-profanity package contains more known profanities. So double benefit!

google-cla[bot] commented 11 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.