mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Add test for new modifiers and fix bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user