mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
let switch_end_paren work with delims of the same char
This commit is contained in:
@@ -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--;
|
||||||
|
Reference in New Issue
Block a user