mirror of
https://github.com/cosmocode/dokuwiki-plugin-aichat.git
synced 2025-08-15 21:48:41 +00:00
monkey patching vanderlee/php-sentence#/27
This commit is contained in:
@ -56,7 +56,9 @@ class Multibyte
|
|||||||
*/
|
*/
|
||||||
public static function trim($string)
|
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