* Do not try to check non-regexp expressions
g_strstrip (str);
arg->type = EXPRESSION_ARGUMENT_NORMAL;
arg->data = str;
- func->args = g_list_prepend (func->args, arg);
+ func->args = g_list_append (func->args, arg);
}
else {
arg->type = EXPRESSION_ARGUMENT_FUNCTION;
arg->data = old;
- func->args = g_list_prepend (func->args, arg);
+ func->args = g_list_append (func->args, arg);
}
/* Pop function */
if (*p == ')') {
}
else {
param_pattern = (char *)arg->data;
+ if (*param_pattern != '/') {
+ /* Skip non-regexp arguments */
+ cur = g_list_next (cur);
+ continue;
+ }
/* This is regexp, so compile and create g_regexp object */
if ((re = re_cache_check (param_pattern)) == NULL) {
re = parse_regexp (task->task_pool, param_pattern);