From: Jens Frank Date: Sun, 6 Jun 2004 05:50:51 +0000 (+0000) Subject: fix regex, missing trailing / added X-Git-Tag: 1.5.0alpha1~3017 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=4dba2cc5e743ee8ab8704d972b18b24670876ce9;p=lhc%2Fweb%2Fwiklou.git fix regex, missing trailing / added --- diff --git a/languages/LanguageUtf8.php b/languages/LanguageUtf8.php index 805589dd2f..45086914ae 100644 --- a/languages/LanguageUtf8.php +++ b/languages/LanguageUtf8.php @@ -67,7 +67,7 @@ class LanguageUtf8 extends Language { function firstChar( $s ) { preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})', $s, $matches); + '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches); return isset( $matches[1] ) ? $matches[1] : ""; }