functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

feat: use faster profanity checker

Open Topener opened this issue 2 years ago • 1 comments

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!

Topener avatar Jul 31 '23 07:07 Topener

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.

google-cla[bot] avatar Jul 31 '23 07:07 google-cla[bot]