From feb00e455337850aa77c1014d4e73fef51953636 Mon Sep 17 00:00:00 2001 From: Alexander Sack Date: Mon, 21 Sep 2009 15:42:30 -0700 Subject: [PATCH] mbm: more permissive ESTKSMENU regexp --- plugins/mm-modem-mbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mm-modem-mbm.c b/plugins/mm-modem-mbm.c index 41c42293..c352ecbe 100644 --- a/plugins/mm-modem-mbm.c +++ b/plugins/mm-modem-mbm.c @@ -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);