From 2b1a2a9feabb29969f8792a5e6e2cb02ac04fcb5 Mon Sep 17 00:00:00 2001 From: paulc Date: Fri, 5 Jan 2018 12:20:26 +0000 Subject: [PATCH] Fixed new match after end of previous block with no spaces in between. git-svn-id: http://voip.null.ro/svn/yate@6289 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/regexroute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/regexroute.cpp b/modules/regexroute.cpp index 95ecb07f..f6a35bf3 100644 --- a/modules/regexroute.cpp +++ b/modules/regexroute.cpp @@ -633,7 +633,7 @@ static bool oneContext(Message &msg, String &str, const String &context, String BlockState blockThis = (blockDepth > 0) ? blockStack[blockDepth-1] : BlockRun; BlockState blockLast = BlockSkip; Regexp reg(n->name(),s_extended,s_insensitive); - if (reg.startSkip("}")) { + if (reg.startSkip("}",false)) { if (!blockDepth) { Debug("RegexRoute",DebugWarn,"Got '}' outside block in line #%u in context '%s'", i+1,context.c_str());