x22x: fix regex when parsing +SYSSEL response

The numbers reported by +SYSSEL may have more than one digit, e.g.:
  +SYSSEL: 14,2,0,0

https://bugzilla.gnome.org/show_bug.cgi?id=698774
This commit is contained in:
Aleksander Morgado
2013-04-24 22:48:18 +02:00
parent 4ac3a6d4f2
commit 126d89b2f3
+1 -1
View File
@@ -56,7 +56,7 @@ load_allowed_modes_finish (MMIfaceModem *self,
if (!response)
return FALSE;
r = g_regex_new ("\\+SYSSEL:\\s*(\\d),(\\d),(\\d),(\\d)", G_REGEX_UNGREEDY, 0, NULL);
r = g_regex_new ("\\+SYSSEL:\\s*(\\d+),(\\d+),(\\d+),(\\d+)", G_REGEX_UNGREEDY, 0, NULL);
g_assert (r != NULL);
if (!g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, error)) {