Skip to content

Fix profanity being detected in numeric/punctuation-only text - #1016

Merged
tudddorrr merged 1 commit into
developfrom
no-profanity-in-numbers
Aug 5, 2026
Merged

Fix profanity being detected in numeric/punctuation-only text#1016
tudddorrr merged 1 commit into
developfrom
no-profanity-in-numbers

Conversation

@tudddorrr

@tudddorrr tudddorrr commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Profanity filter false positive fix

  • Numeric-only strings (e.g. coordinates like "142,460") were being flagged as profane because the matcher decoded them as leetspeak, producing words like "goza".
  • The profanity check now skips strings that contain no Unicode letters, since leetspeak decoding is only relevant when letters are present.
  • This prevents game data such as coordinate arrays from being incorrectly rejected when blockPropsProfanity is enabled.

@tudddorrr tudddorrr added the fix This pull request contains a fix label Aug 5, 2026
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.31%. Comparing base (c34f084) to head (28fa369).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1016      +/-   ##
===========================================
- Coverage    98.33%   98.31%   -0.02%     
===========================================
  Files          439      439              
  Lines         7246     7248       +2     
  Branches       971      972       +1     
===========================================
+ Hits          7125     7126       +1     
  Misses          49       49              
- Partials        72       73       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tudddorrr
tudddorrr merged commit e4efa25 into develop Aug 5, 2026
15 of 17 checks passed
@tudddorrr
tudddorrr deleted the no-profanity-in-numbers branch August 5, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix This pull request contains a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant