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
No Lint Coverage - Unit
No Test Coverage
Event Timeline
| services/blob/src/service.rs | ||
|---|---|---|
| 76 | Outer part of this regex | |
| 147–151 | Inner part of this regex | |
| 745 | Better name | |