All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.4.1 (2024-12-03)
- preset/english: add "fickle" to whitelist (#87) (da754da)
- preset/english: remove erroneous patterns for
dick
(e43d502), closes #86
0.4.0 (2024-08-02)
- regexp-matcher: Passing an empty whitelisted term to the RegExpMatcher will result in a runtime error.
This was unsupported previously and likely did not work correctly. Make it a real error.
- regexp-matcher: advance index correctly in whitelist matcher (ebf95ad), closes #49
- regexp-matcher: correctly remap to original indices in all cases (3a49579), closes #71
- regexp-matcher: reject empty whitelist terms (9a46113)
0.3.1 (2024-07-17)
0.3.0 (2024-07-17)
-
The library no longer exports a version constant.
-
drop version constant (2810674)
0.2.2 (2024-07-17)
0.2.1 (2024-03-03)
0.2.0 (2024-01-05)
- 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.
-
english-preset: don't include skip-non-alphabetic transformer (620c721), closes #23 #46
-
english-preset: remove extraneous patterns for n-word (e135be5), closes #48
-
matchers: remove NfaMatcher (b69c21d)
0.1.4 (2023-06-06)
Versions skipped due to temporary issue with release workflow.
Initial release.