mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-26 15:00:07 +00:00
4 lines
378 B
Perl
4 lines
378 B
Perl
|
/* More complete tests for get_matches are in AbuseFilterParserTest.php */
|
||
|
a := get_matches('I am a (dog|cat)', 'What did you say?');
|
||
|
get_matches('The (truth|pineapple) is (?:rarely)? pure and (nee*v(ah|er) sh?imple)', 'The truth is rarely pure and never simple, Wilde said') == ['The truth is rarely pure and never simple', 'truth', 'never simple', 'er'] &
|
||
|
a === [false, false]
|