Уикипедия:Заявки към администраторите/2019/46
Облик
(Apologize for using English. I don't know how to write Bulgarian.)
The expression article_namespace in [14, 15]
is likely not going to do what you want. Currently, in the abusefilter language, in
doesn't really work with arrays. For instance, the above expression is equivalent to string(article_namespace) in "14\n15\n"
. This means that when article_namespace
is 1, 4, or 5, the expression will be evaluated to true as well.
I suggest refactoring the above expression to something like equals_to_any(page_namespace, 14, 35)
, which should have the effect that you intend (page_namespace
is now preferable over article_namespace
).
Let me know if there are any questions. --Nullzero (беседа) 03:50, 17 ноември 2019 (UTC)
- Nullzero, thank you very much for the notice. Really appreciate that you took the time to notify the communities! I've updated the filter and also added a short note to mw:Extension:AbuseFilter/Rules format#Arrays.
Cheers,
— Luchesar • Б/П 16:10, 17 ноември 2019 (UTC)