mediawiki-extensions-AbuseF.../tests/parserTests/contains-any.t
Daimona Eaytoy 7b06be0204 Allow dangling commas in variargs
This is because there are many filters using this feature. Moreover, it
could make it a little easier to add new arguments, just like dangling
commas in PHP arrays do.
Also re-align the CachingParser code of doLevelFunctions to the one in
the old Parser.

Bug: T153251
Change-Id: Ie4325159f47310788da57415a5e36e62aa4efad0
2019-09-07 11:19:14 +02:00

5 lines
176 B
Raku

contains_any("like anyone else", "else", "someone") &
contains_any("street fighter", "fight") &
!(contains_any('My foo is cute', 'bar', 'wtf')) &
contains_any([[1], [2,3]], 1)