aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-06-25 17:40:06 +0200
committerAleksander Morgado <aleksander@aleksander.es>2014-06-25 17:40:06 +0200
commit4406b1e6ece6507518362cf5fdb53d09243ddfb8 (patch)
tree955603148fb495e795513396a056c1cd248179fa /src
parent9637c1ed3825673103fbbf10005f4547682fbf56 (diff)
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: <CR><LF>+CMTI: "MT", 5<CR><LF>
Diffstat (limited to 'src')
-rw-r--r--src/mm-modem-helpers.c2
1 files changed, 1 insertions, 1 deletions
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);