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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user