/pidgin/main: 709e37225d45: Don't compile Debug Window regex wit...

Elliott Sales de Andrade qulogic at pidgin.im
Tue Jul 24 04:03:42 EDT 2012


Changeset: 709e37225d459547c8e0e233319b2b0c8ebc20e4
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-21 03:02 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/709e37225d45

Description:

Don't compile Debug Window regex with G_REGEX_EXTENDED.

That flag causes whitespace to be ignored, and I don't think a
user typing stuff in the entry would expect that.

diffstat:

 pidgin/gtkdebug.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/pidgin/gtkdebug.c b/pidgin/gtkdebug.c
--- a/pidgin/gtkdebug.c
+++ b/pidgin/gtkdebug.c
@@ -340,7 +340,7 @@
 
 	if (win->regex)
 		g_regex_unref(win->regex);
-	win->regex = g_regex_new(text, G_REGEX_EXTENDED | G_REGEX_CASELESS, 0, NULL);
+	win->regex = g_regex_new(text, G_REGEX_CASELESS, 0, NULL);
 	if(win->regex == NULL) {
 		/* failed to compile */
 		regex_change_color(win->expression, 0xFFFF, 0xAFFF, 0xAFFF);



More information about the Commits mailing list