i try script:

$var(some_string) = 'a=foo1;b=foo2;c=foo3,4,5;d=3';
$var(c_value) = $(var(some_string){param.value,c,;});
xlog("L_INFO", "'c' param from '$var(some_string)' is '$var(c_value)'");

in log:

'c' param from 'a=foo1;b=foo2;c=foo3,4,5;d=3' is 'foo3'

Has this behaviour any reason? or it's possible to delete comma from stop list (and use separator parameter for comma-delimited list)?

diff --git a/parser/parse_param.c b/parser/parse_param.c
index b9e0fbc..e7784c8 100644
--- a/parser/parse_param.c
+++ b/parser/parse_param.c
@@ -355,7 +355,6 @@ static inline int parse_token_param(str* _s, str* _r, char separator)
                case '\t':
                case '\r':
                case '\n':
-               case ',':
                             /* So if you find
                              * any of them
                              * stop iterating


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.