Fix for ENG-10819.
Changed the profane regex to be consistent with the one from bad-words npn package. This fixed the issue with the library accepting some words, but blob service rejecting them.
Details
Details
- Reviewers
tomek kamil - Commits
- rCOMM8650a80e4fb1: [blob] Improve regex for offensive words
- Unit test (I added another test for profane words too locally, but didn't commit it)
- Compared the results with JS version: bad-words.isProfane()
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| services/blob/src/service.rs | ||
|---|---|---|
| 76 ↗ | (On Diff #48433) | Outer part of this regex |
| 147–151 ↗ | (On Diff #48433) | Inner part of this regex |
| 745 ↗ | (On Diff #48433) | Better name |