From b0c8ca9e1ae020db771f4470461cba81d3c8957d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 18 Nov 2014 07:34:50 +0100 Subject: [PATCH] Escape regex correctly. --- qutebrowser/utils/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index cc44b1672..f8dc74cbd 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -264,7 +264,7 @@ def qt_message_handler(msg_type, context, msg): # Not much information about this, but it seems harmless 'QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"', # Sometimes indicates missing text, but most of the time harmless - 'load glyph failed err=\S+ face=\S+, glyph=\S+') + r'load glyph failed err=\S+ face=\S+, glyph=\S+') if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs): level = logging.DEBUG else: