jo3-l / obscenity

Robust, extensible profanity filter for NodeJS
MIT License
70 stars 2 forks source link

fix(matchers): gracefully handle empty patterns #31

Closed jo3-l closed 1 year ago

jo3-l commented 1 year ago

Fixes #30. We now consistently issue an error for patterns potentially matching an empty string, and additionally patch the matcher implementation to not loop infinitely for zero-length matches.