Skip to content

Releases: jo3-l/obscenity

v0.2.1

03 Mar 03:37
v0.2.1
824b4a0
Compare
Choose a tag to compare

Features

  • english-preset: add more blacklisted terms (#50) (c189595)

v0.2.0

05 Jan 07:43
v0.2.0
3c58e14
Compare
Choose a tag to compare

Bug Fixes

  • english-preset: don't include skip-non-alphabetic transformer (620c721), closes #23 #46
  • english-preset: remove extraneous patterns for n-word (e135be5), closes #48
  • pkg: ensure types resolve in ESM (718da8a), closes #44

Code Refactoring

  • matchers: remove NfaMatcher (b69c21d)

Features

  • english-preset: blacklist 'shit' by default (b0d90aa), closes #47

BREAKING CHANGES

  • english-preset: Using the default English preset, Obscenity will no longer strip non-alphabetic characters from the input text before matching.

This addresses a class of egregious false negatives in previous versions (see #23), but introduces a regression where cases such as 'f u c k' (with the space) will no longer be detected by default. We expect to provide a more comprehensive fix in the next minor release.

If desired, it remains possible to revert to the previous behavior by providing a custom set of transformers to the matcher.

  • matchers: The NfaMatcher class has been removed. Use the RegExpMatcher instead.

v0.1.4

07 Jun 01:30
224aa96
Compare
Choose a tag to compare

Bug Fixes

  • matchers: gracefully handle empty patterns (#31) (79cfa63)

v0.1.1

27 Aug 22:19
710469c
Compare
Choose a tag to compare
chore(release): 0.1.1

v0.1.0

27 Aug 22:13
ef147eb
Compare
Choose a tag to compare

Initial release.