diff options
Diffstat (limited to 'www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t')
-rw-r--r-- | www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t b/www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t new file mode 100644 index 00000000..88e163b4 --- /dev/null +++ b/www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t @@ -0,0 +1,4 @@ +/* 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]
\ No newline at end of file |