mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 02:03:53 +00:00
35747761fb
I've also added myself to the credits file as I'm the only maintainer of this extension for a while now. Change-Id: Id998172ea2abd70b8243de9db1a96cc2cfa47a64
29 lines
901 B
Raku
29 lines
901 B
Raku
/* Filter 18 from English Wikipedia (test type edits from clicking on edit bar) */
|
|
user_groups_test := ["*"];
|
|
article_namespace_test := 0;
|
|
added_lines_test := ["Hello world! '''Bold text''' [http://www.example.com link title]"];
|
|
|
|
(article_namespace_test == 0) &
|
|
!("autoconfirmed" in user_groups_test) &
|
|
(contains_any(string(added_lines_test),
|
|
"'''Bold text'''",
|
|
"''Italic text''",
|
|
"[[Link title]]",
|
|
"[http://www.example.com link title]",
|
|
"== Headline text ==",
|
|
"[[File:Example.jpg]]",
|
|
"[[Media:Example.ogg]]",
|
|
"<math>Insert formula here</math>",
|
|
"<nowiki>Insert non-formatted text here</nowiki>",
|
|
"#REDIRECT [[Target page name]]",
|
|
"<s>Strike-through text</s>",
|
|
"<sup>Superscript text</sup>",
|
|
"<sub>Subscript text</sub>",
|
|
"<small>Small Text</small>",
|
|
"<!-- Comment -->",
|
|
"Image:Example.jpg|Caption",
|
|
"<ref>Insert footnote text here</ref>",
|
|
"Ǣ ǣ ǖ ǘ ǚ ǜ Ă"
|
|
))
|
|
|