mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
accept asterisk N/X/Z/. notation everywhere regexes are expected when they start with _
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13287 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -60,11 +60,18 @@ SWITCH_DECLARE(int) switch_regex_perform(const char *field, const char *expressi
|
||||
int match_count = 0;
|
||||
char *tmp = NULL;
|
||||
uint32_t flags = 0;
|
||||
char abuf[256] = "";
|
||||
|
||||
if (!(field && expression)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (*expression == '_') {
|
||||
if (switch_ast2regex(expression + 1, abuf, sizeof(abuf))) {
|
||||
expression = abuf;
|
||||
}
|
||||
}
|
||||
|
||||
if (*expression == '/') {
|
||||
char *opts = NULL;
|
||||
tmp = strdup(expression + 1);
|
||||
|
Reference in New Issue
Block a user