mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-15 19:40:06 +00:00
let switch_end_paren work with delims of the same char
This commit is contained in:
parent
d2c34232ab
commit
7d1e664dc8
@ -372,7 +372,7 @@ SWITCH_DECLARE(char *) switch_find_end_paren(const char *s, char open, char clos
|
||||
if (s && *s == open) {
|
||||
depth++;
|
||||
for (e = s + 1; e && *e; e++) {
|
||||
if (*e == open) {
|
||||
if (*e == open && open != close) {
|
||||
depth++;
|
||||
} else if (*e == close) {
|
||||
depth--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user