[telepathy-sofiasip/master] Anchor the match for DTMF events list at the beginning of the string

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Mon Nov 30 05:51:23 PST 2009


---
 tpsip/codec-param-formats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tpsip/codec-param-formats.c b/tpsip/codec-param-formats.c
index 3119def..c271492 100644
--- a/tpsip/codec-param-formats.c
+++ b/tpsip/codec-param-formats.c
@@ -318,7 +318,7 @@ tpsip_codec_param_formats_init ()
 #define DTMF_RANGE "[0-9]+(-[0-9]+)?"
 
   dtmf_events_regex = g_regex_new (
-      "(" DTMF_RANGE "(," DTMF_RANGE ")*)\\s*(;|$)",
+      "^(" DTMF_RANGE "(," DTMF_RANGE ")*)\\s*(;|$)",
       G_REGEX_RAW | G_REGEX_OPTIMIZE,
       0, NULL);
   g_assert (dtmf_events_regex != NULL);
-- 
1.5.6.5




More information about the telepathy-commits mailing list