From: Geoffrey T. D. <da...@us...> - 2001-12-11 15:47:05
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv13230/lib Modified Files: Tag: release-1_2-branch config.php Log Message: SF bug #422780 & task #31712: International characters in wiki words. Updated $WikiNameRegexp so that it should work with all ISO-8859-1 languages. Index: config.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v retrieving revision 1.24.2.10 retrieving revision 1.24.2.11 diff -C2 -r1.24.2.10 -r1.24.2.11 *** config.php 2001/12/02 21:36:43 1.24.2.10 --- config.php 2001/12/11 15:47:02 1.24.2.11 *************** *** 207,213 **** // Perl regexp for WikiNames // (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well ! $WikiNameRegexp = "(?<![A-Za-z0-9])([A-Z][a-z]+){2,}(?![A-Za-z0-9])"; ! ! ///////////////////////////////////////////////////////////////////// --- 207,213 ---- // Perl regexp for WikiNames // (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well ! //$WikiNameRegexp = "(?<![A-Za-z0-9])([A-Z][a-z]+){2,}(?![A-Za-z0-9])"; ! // This should work for all ISO-8859-1 languages: ! $WikiNameRegexp = "(?<![A-Za-z0-9µÀ-ÖØ-öø-ÿ])([A-ZÀ-ÖØ-Þ][a-zµß-öø-ÿ]+){2,}(?![A-Za-z0-9µÀ-ÖØ-öø-ÿ])"; ///////////////////////////////////////////////////////////////////// |