mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
c75bc35f7d
Arrays were introduced with the name "lists". While it **may** look user-friendlier and so on, it actually uses a wrong name: lists are different from arrays. I ran a grep and I should've replaced every occurrence, plus everything seems to work, however a double check wouldn't be bad. Change-Id: I6a858f02f5dd9250ba7e1abf9c6422fd98758c9e
10 lines
270 B
Perl
10 lines
270 B
Perl
/* Examples from [[mw:Extension:AbuseFilter/Rules format#Lists]] */
|
|
|
|
a_array := [ 5, 6, 7, 10];
|
|
a_array[0] == 5 &
|
|
length(a_array) == 4 &
|
|
string(a_array) == "5\n6\n7\n10\n" &
|
|
5 in a_array == true &
|
|
'5' in a_array == true &
|
|
'5\n6' in a_array == true &
|
|
1 in a_array == true |