mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
517919fca8
I5ec4ab44c4e88aaf18c0d7b73355d27050beeda7 almost fixed this bug, but we also have to make it possible to access builtin variables as arrays. This will only make sense for a few variables (e.g. added_lines and removed_lines), but I don't think we should validate it when checking syntax. Bug: T198531 Change-Id: I417e1b8d4802bbfccd091ce5c7617659cfd1e4ea
4 lines
189 B
Perl
4 lines
189 B
Perl
removed_lines[1] == 2 |
|
|
added_lines[0] contains 'x' |
|
|
new_wikitext[1] !== 'xxx' | /* This will fail at runtime, but should pass the syntax check */
|
|
true /* Needed to make this code match */ |