- Update AbuseFilter documentation to include ccnorm_contains_any
- Notify users about it on Edit Filter Noticeboard so they become aware of it
Documentation to update
Documentation to update
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • TBolliger | T166816 Epic ⚡️ : Accuracy improvements to anti-spoof tools across multiple pertinent tools | |||
Resolved | dmaza | T65242 ccnorm revamp: add a more sensible interface for normalised comparison | |||
Resolved | dmaza | T177711 Notify users about ccnorm_contains_any and update abuse filter documentation |
Could you also add examples which applicable to T65242#3669911 (T29987#324746), if possible?
Since user-notice has been added, could you briefly (a couple of sentences) write how you would describe this for a non-technical editor?
When writing filters ccnorm_contains_any can be used when we need to find multiple strings within another string and we want to use their canonical representation for comparison.
It normalises confusable/similar characters in the arguments, and returns true if the first string contains any string from the following arguments (unlimited number of arguments can be used)
Example:
Code | Result |
ccnorm_contains_any( "w1k1p3d14", "wiKiP3D1A", "foo", "bar" ) | true |
ccnorm_contains_any( "w1k1p3d14", "foo", "bar", "baz" ) | false |
ccnorm_contains_any( "w1k1p3d14 is 4w3s0me", "bar", "baz", "some" ) | true |
@Johan is that good?