mirror of
https://github.com/cosmocode/dokuwiki-plugin-aichat.git
synced 2025-07-23 01:03:06 +00:00
monkey patching vanderlee/php-sentence#/27
This commit is contained in:
@ -56,7 +56,9 @@ class Multibyte
|
||||
*/
|
||||
public static function trim($string)
|
||||
{
|
||||
return mb_ereg_replace('^\s*([\s\S]*?)\s*$', '\1', $string);
|
||||
$string = mb_ereg_replace('^\s*', '', $string); // left trim
|
||||
$string = mb_ereg_replace('\s*$', '', $string); // right trim
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user