Add test for new modifiers and fix bugs

This commit is contained in:
bzick
2014-07-11 11:46:19 +04:00
parent 8e48d1aaee
commit e6a9b511bd
3 changed files with 65 additions and 1 deletions

View File

@@ -255,7 +255,7 @@ class Modifier
*/
public static function esplit($value, $pattern = '/,\s*/S')
{
if(is_string($pattern)) {
if(is_string($value)) {
return preg_split($pattern, $value);
} elseif(is_array($value)) {
return $value;