modem-helpers: allow strings instead of indexes in CIEV unsolicited events

Some modems will report strings instead of indicator indexes, like:
 +CIEV: roam,1

So allow non-integer indicators.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:15:00 +01:00
parent eb37fc1589
commit aee2b32a35
+1 -1
View File
@@ -537,7 +537,7 @@ mm_3gpp_creg_regex_destroy (GPtrArray *array)
GRegex *
mm_3gpp_ciev_regex_get (void)
{
return g_regex_new ("\\r\\n\\+CIEV: (\\d+),(\\d)\\r\\n",
return g_regex_new ("\\r\\n\\+CIEV: (.*),(\\d)\\r\\n",
G_REGEX_RAW | G_REGEX_OPTIMIZE,
0,
NULL);