diff options
author | Dan Williams <dan@ioncontrol.co> | 2025-04-13 19:56:56 -0500 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-04-13 19:58:30 -0500 |
commit | 6b6997362b5530708725c16c80ef36cd21609f20 (patch) | |
tree | 13fa0f2417a8cbb9af5f54bf4b99cf2ee7db5072 /src/plugins/cinterion/mm-modem-helpers-cinterion.c | |
parent | 8fc3f44e763c388ee8b976ab367758a1bf9052d3 (diff) |
modem-helpers-cinterion: allow spaces in ^SXRAT test response
^SXRAT: (0-6), (0,2,3), (0,2,3)
Fixes: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/974
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/plugins/cinterion/mm-modem-helpers-cinterion.c')
-rw-r--r-- | src/plugins/cinterion/mm-modem-helpers-cinterion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cinterion/mm-modem-helpers-cinterion.c b/src/plugins/cinterion/mm-modem-helpers-cinterion.c index b2ef89a9..53f4cff4 100644 --- a/src/plugins/cinterion/mm-modem-helpers-cinterion.c +++ b/src/plugins/cinterion/mm-modem-helpers-cinterion.c @@ -794,7 +794,7 @@ mm_cinterion_parse_sxrat_test (const gchar *response, return FALSE; } - r = g_regex_new ("\\^SXRAT:\\s*\\(([^\\)]*)\\),\\(([^\\)]*)\\)(,\\(([^\\)]*)\\))?(?:\\r\\n)?", + r = g_regex_new ("\\^SXRAT:\\s*\\(([^\\)]*)\\),\\s*\\(([^\\)]*)\\)(,\\s*\\(([^\\)]*)\\))?(?:\\r\\n)?", G_REGEX_DOLLAR_ENDONLY | G_REGEX_RAW, 0, NULL); |