From 5d53c259cfe7b3ad724b1746a9a0ffd0c6f2ff31 Mon Sep 17 00:00:00 2001 From: Lloyd Weehuizen Date: Sun, 24 Nov 2013 15:50:27 +1300 Subject: [PATCH] Fix argument parsing --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(