Diskuse k Wikipedii:Velvyslanectví: Porovnání verzí
Smazaný obsah Přidaný obsah
Nová sekce →Buggy Special:AbuseFilter/1 značka: první editace |
|||
Řádek 77:
The expression <code>page_namespace in [0, 12]</code> is likely not going to do what you want. Currently, in the abusefilter language, <code>in</code> [[:phab:T181024|doesn't really work with arrays]]. In particular, the above expression is equivalent to <code>string(page_namespace) in "0\n12\n"</code>. This means that when <code>page_namespace</code> is 1 or 2, the expression will be evaluated to true as well.
I suggest changing the above expression to <code>equals_to_any(page_namespace, 0, 12)</code>, which should have the effect that you intend.
Let me know if there is any questions. --[[Wikipedista:Nullzero|Nullzero]] ([[Diskuse s wikipedistou:Nullzero|diskuse]]) 17. 11. 2019, 04:00 (CET)
|