-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Filtering non ascii bad words #35418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: c94103e The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #35418 +/- ##
========================================
Coverage 59.66% 59.66%
========================================
Files 2826 2826
Lines 68369 68379 +10
Branches 15148 15149 +1
========================================
+ Hits 40793 40801 +8
- Misses 24962 24964 +2
Partials 2614 2614
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@kody start-review |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts
Outdated
Show resolved
Hide resolved
apps/meteor/server/services/messages/hooks/BeforeSaveBadWords.ts
Outdated
Show resolved
Hide resolved
|
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
SUP-704
This pull request aims to enhance the content moderation capabilities of the Rocket.Chat application by improving the bad words filtering system. It introduces support for filtering non-ASCII bad words, allowing for better moderation of messages in languages other than English. The changes include the addition of regex-based pattern matching to the existing bad words filter, which improves word boundary detection and ensures more consistent censorship of inappropriate language. These updates are implemented in the
BeforeSaveBadWords.tsfile and documented in the.changeset/witty-ads-visit.mdfile. The source branch for these changes isfix/non-ascii-bad-words, and the target branch isdevelop.