[MM] [PATCH] Adjust parsing of +CNUM response to permit spaces in the alphanumeric descriptor.
- From: Nathan Williams <njw google com>
- To: networkmanager-list gnome org
- Subject: [MM] [PATCH] Adjust parsing of +CNUM response to permit spaces in the alphanumeric descriptor.
- Date: Fri, 13 Apr 2012 10:57:05 -0400
As described. This replaces a regexp of "?\S*"? , which doesn't match the string "Line 1" because of the embedded whitespace, with a somewhat more elaborate regular _expression_ that does. It also accommodates escaped quotes inside the quoted string.
(A more general "tokenize v.250 comma-separated response" function might be good to have here, but that's a larger project).
Fixes the OwnNumbers property on my Novatel E362 with a Verizon SIM.
Description: Binary data
] [Thread Prev