mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-21 01:42:45 +00:00
71f375f19a
Introduce a new function which can be used to group multiple comparisons in a single condition. In particular, equals_to_any(S, A, B) is the equivalent of S === A || S === B. This is especially useful in checking for multiple namespaces, as proposed in the Community health initiative. Change-Id: I9dcfe303eb5e51e1882fe4a65fa876aa93db7686
1 line
78 B
Raku
1 line
78 B
Raku
equals_to_any("foo", "bar", "foo", "pizza") & equals_to_any(15, 3, 77, 18, 15) |