aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regex
Commit message (Expand)AuthorAgeFilesLines
* [ticket/13614] Removed code that relies on phpbb_pcre_utf8_support()JoshyPHP2015-05-111-11/+1
* [ticket/12926] Support for IDN (IRI)rxu2014-11-271-1/+1
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-277-21/+49
* [ticket/12056] Fix "undefined function phpbb_pcre_utf8_support()".Andreas Fischer2013-12-041-0/+1
* [ticket/10162] Add test cases for top level domain names longer than 6 chars.Andreas Fischer2012-05-301-0/+3
* [ticket/9916] Updating License in the headerUnknown2012-01-027-7/+7
* [ticket/9066] Move regex into get_preg_expression function and add testsJoas Schilling2011-11-141-0/+35
* [ticket/9751] Password requirement "Must contain letters and numbers" failsrxu2011-04-011-0/+81
* [ticket/10011] Tests don't work on PHP < 5.3Erik Frèrejean2011-01-315-5/+5
* [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression().Andreas Fischer2011-01-161-2/+12
* [ticket/9987] Rename test files to include a _test suffixIgor Wiedler2011-01-105-0/+0
* [ticket/9933] Create unit test for word censor regular expression.rxu2011-01-071-0/+40
* [task/phpunit-xml] Use phpunit.xml for test suiteIgor Wiedler2011-01-045-54/+4
* [ticket/9715] Extend email unit testsCullen Walsh2010-07-111-1/+42
* [ticket/9626] Adding tests for the URL regular expression.Andreas Fischer2010-05-252-0/+36
* [ticket/9626] Add missing class prefix.Andreas Fischer2010-05-254-6/+6
* [ticket/9626] A few tests for the email regular expression.Andreas Fischer2010-05-252-0/+80
* [ticket/9626] More IPv6 regex tests.Andreas Fischer2010-05-251-4/+62
* [ticket/9626] Adding tests for the IPv4 regular expression.Andreas Fischer2010-05-252-0/+74
* [ticket/9626] Adding tests for regular expressions.Andreas Fischer2010-05-252-0/+125
pan> 0; my $line_number = 0; foreach (@file_content) { $line_number++; /msgid/ and $msgstr = 0; /msgstr/ and $msgstr = 1; $msgstr and push @out, sprintf("%4d ", $line_number).$_; } @out; } my $line_number = 0; # --- Problems potentially common to multiple languages sub mixed_case($) { (/[\^ ][A-Z][A-Z][a-z]/ && !/XFree/ || /[\^ ][a-z][A-Z]/) and print("**.po possible-mixed-case $_"); } sub uppercase_after_comma($) { /, [A-Z]/ and print("**.po uppercase-after-comma $_"); } sub lowercase_after_dot($) { /\. [a-z]/ and print("**.po lowercase-after-dot $_"); } sub no_space_after_simple_ponct($) { /[a-zA-Z\.]+@[a-zA-Z]/ and return; /[,\.][a-zA-Z]/ and print("**.po no-space-after-simple-ponct $_"); } sub space_before_simple_ponct($) { / \.\./ and return; / [,\.]/ and print("**.po space-before-simple-ponct $_"); } # --- fr.po foreach (get_file("fr.po")) { /\s*#/ and next; /ez [^ ]+ez/ and print("fr.po infinitive-form-with-ez $_"); /è[ \.,;:]/ and print("fr.po grave-accent-at-end-of-word $_"); (/[éêè][éêè]/ && !/créé/) and print("fr.po strange-accents-succession $_"); /G[nN][uU]\/[lL]inux/ and print("fr.po GNU-slash-Linux-found $_"); mixed_case($_); uppercase_after_comma($_); lowercase_after_dot($_); no_space_after_simple_ponct($_); space_before_simple_ponct($_); }