git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6255
d0543943-73ff-0310-b7d9-
9358b9ac24b2
return 0;
}
- if (*expression == '/' && *(expression + (strlen(expression) - 1)) == '/') {
+ if (*expression == '/') {
char *opts = NULL;
tmp = strdup(expression + 1);
assert(tmp);
if ((opts = strrchr(tmp, '/'))) {
*opts++ = '\0';
+ } else {
+ goto end;
}
expression = tmp;
if (opts) {
}
}
+
re = pcre_compile(expression, /* the pattern */
flags, /* default options */
&error, /* for error message */