mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-16 11:52:01 +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) {
|
if (s && *s == open) {
|
||||||
depth++;
|
depth++;
|
||||||
for (e = s + 1; e && *e; e++) {
|
for (e = s + 1; e && *e; e++) {
|
||||||
if (*e == open) {
|
if (*e == open && open != close) {
|
||||||
depth++;
|
depth++;
|
||||||
} else if (*e == close) {
|
} else if (*e == close) {
|
||||||
depth--;
|
depth--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user