diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/AbuseFilter/tests/parserTests/get-matches.t |
first commit
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 |