mbm: more permissive ESTKSMENU regexp

This commit is contained in:
Alexander Sack
2009-09-21 15:42:30 -07:00
committed by Dan Williams
parent 3d178fafcf
commit feb00e4553
+1 -1
View File
@@ -727,7 +727,7 @@ grab_port (MMModem *modem,
g_regex_unref (regex);
/* also consume unsolicited mbm messages we are not interested in them - see LP: #416418 */
regex = g_regex_new ("\\r\\n\\ *ESTKSMENU: .* \\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL);
regex = g_regex_new ("\\R\\*ESTKSMENU:.*\\R", G_REGEX_RAW | G_REGEX_OPTIMIZE | G_REGEX_MULTILINE | G_REGEX_NEWLINE_CRLF, G_REGEX_MATCH_NEWLINE_CRLF, NULL);
mm_serial_port_add_unsolicited_msg_handler (MM_SERIAL_PORT (port), regex, NULL, modem, NULL);
g_regex_unref (regex);