https://bugzilla.wikimedia.org/show_bug.cgi?id=19176
Web browser: ---
Summary: Add contains_all function to abuse filter
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: AbuseFilter
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
A function similar to the existing contains_any function, but instead only
returning true if all substrings are present, would be useful both for
cleanliness of code, and from an efficiency standpoint (less normalization in
some cases).
Instead of
norm(haystack) contains "needle1" &
norm(haystack) contains "needle2" &
norm(haystack) contains "needle3"
contains_all(haystack,"needle1","needle2","needle3")
[contains_any is basically the same situation, except with the &'s replaces
with |s]
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l