https://bugzilla.wikimedia.org/show_bug.cgi?id=30846
--- Comment #15 from Niklas Laxström <[email protected]> 2011-09-19 11:59:08 UTC --- Why is this twice?: if (preg_match('/тæ$/u', $word)) $word=mb_substr($word,0,-1); What does this do? Can you add a comment with example or something? elseif ( preg_match( "/[у]/u", $ll) ) { if ( !preg_match( "/[аæеёиоыэюя]/u", mb_substr( $word, -2, 1 )) ) Can you also do with out $ll variable? It is easy to match the end of string with pattern like /y$/. It also does not follow our coding conventions, but that is something I can fix when I commit. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
