modem-helpers: act given in COPS=? may have more than one digit

The new 5GNR related values are >= 10, so don't expect one single
digit (\d), expect one or more (\d+).
This commit is contained in:
Aleksander Morgado
2022-03-16 11:04:06 +00:00
parent 8ce4555a79
commit 5ba67aff82
+1 -1
View File
@@ -1228,7 +1228,7 @@ mm_3gpp_parse_cops_test_response (const gchar *reply,
* +COPS: (2,"","T-Mobile","31026",0),(1,"AT&T","AT&T","310410"),0)
*/
r = g_regex_new ("\\((\\d),\"([^\"\\)]*)\",([^,\\)]*),([^,\\)]*)[\\)]?,(\\d)\\)", G_REGEX_UNGREEDY, 0, NULL);
r = g_regex_new ("\\((\\d),\"([^\"\\)]*)\",([^,\\)]*),([^,\\)]*)[\\)]?,(\\d+)\\)", G_REGEX_UNGREEDY, 0, NULL);
g_assert (r);
/* If we didn't get any hits, try the pre-UMTS format match */