From 4406b1e6ece6507518362cf5fdb53d09243ddfb8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 25 Jun 2014 17:40:06 +0200 Subject: modem-helpers: improve +CMTI indication regex Allow whitespaces added in several places, like between the comma and the index, which is what the Cinterion PHS8 does: +CMTI: "MT", 5 --- src/mm-modem-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index e0395af8..9f7dd4bc 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -495,7 +495,7 @@ mm_3gpp_cusd_regex_get (void) GRegex * mm_3gpp_cmti_regex_get (void) { - return g_regex_new ("\\r\\n\\+CMTI: \"(\\S+)\",(\\d+)\\r\\n", + return g_regex_new ("\\r\\n\\+CMTI:\\s*\"(\\S+)\",\\s*(\\d+)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); -- cgit v1.2.3-70-g09d2