Page MenuHomePhabricator

Notify users about ccnorm_contains_any and update abuse filter documentation
Closed, ResolvedPublic0.5 Estimated Story Points

Description

  1. Update AbuseFilter documentation to include ccnorm_contains_any
  2. Notify users about it on Edit Filter Noticeboard so they become aware of it

Documentation to update

Event Timeline

Notifying Tech News writers would be good too. Adding Notice for that reason

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?

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:

CodeResult
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?

Restricted Application reassigned this task from dmaza to R3609901. · View Herald TranscriptNov 17 2017, 3:45 AM