Closed jwoertink closed 1 year ago
Thanks for the report. I've identified the issue and will have a fix out shortly.
Released 0.1.4 with a fix; let me know if that works for you and of course feel free to reopen if anything still seems off @jwoertink.
Expected behavior
Proper error message
Actual behavior
JavaScript heap out of memory
Minimal reproducible example
Steps to reproduce
index.js
node index.js
Additional context
The words come from user generated content. My app was improperly storing an empty string. When the code would try to dynamically generate the banned word list with an empty string in the mix, it would tank the site.
Node.js version
v16.6.1
Obscenity version
obscenity@^0.1.1: version "0.1.1"
Priority
Terms