mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 20:17:05 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4dbc074393
commit
4a60c1e310
3 files changed
+82
-17
No files matched your search
@@ -226,6 +226,8 @@ SWITCH_DECLARE(switch_bool_t) switch_ast2regex(char *pat, char *rbuf, size_t len
|
||||
{
|
||||
char *p = pat;
|
||||
memset(rbuf, 0, len);
|
||||
|
||||
*(rbuf + strlen(rbuf)) = '^';
|
||||
|
||||
while(p && *p) {
|
||||
if (*p == 'N') {
|
||||
@@ -241,6 +243,7 @@ SWITCH_DECLARE(switch_bool_t) switch_ast2regex(char *pat, char *rbuf, size_t len
|
||||
}
|
||||
p++;
|
||||
}
|
||||
*(rbuf + strlen(rbuf)) = '$';
|
||||
|
||||
return strcmp(pat,rbuf) ? SWITCH_TRUE : SWITCH_FALSE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user