Last modified: 2014-02-12 23:38:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21176, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19176 - Add contains_all function to abuse filter
Add contains_all function to abuse filter
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-12 18:39 UTC by Prodego
Modified: 2014-02-12 23:38 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Prodego 2009-06-12 18:39:16 UTC
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]
Comment 1 Andrew Garrett 2009-07-16 17:04:32 UTC
(Batch change)

These are low-priority miniprojects that I can mop up at some point when I'm doing general code work as opposed to working on a specific projects.
Comment 2 Andrew Garrett 2009-08-14 12:37:56 UTC
[Batch change]

Removing Dave McCabe from CC, who I somehow managed to add to the CC list of 12 bugs assigned to me.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links