diff --git a/src/functions.php b/src/functions.php index 701d01c95..d61141eb5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -142,7 +142,7 @@ function arguments ( $args ){ array_shift( $args ); $args = join( $args, ' ' ); - preg_match_all('/ (--[\w\-]+ (?:[= ] [^-]+ [^\s-] )? ) | (-\w+) | (\w+) /x', $args, $match ); + preg_match_all('/ (--[\w\-]+ (?:[= ] [^-\s]+ )? ) | (-\w+) | (\w+) /x', $args, $match ); $args = array_shift( $match ); $ret = array(