[empathy] Use \s to match spaces, it is the same as [ \t\n\r\f\v]



commit a7f2c69cc15e8e971928ef8012d61f45442da8ca
Author: Xavier Claessens <xclaesse gmail com>
Date:   Tue Dec 1 11:38:37 2009 +0100

    Use \s to match spaces, it is the same as [ \t\n\r\f\v]

 libempathy-gtk/empathy-ui-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 6906d82..2d8f409 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -51,7 +51,7 @@
 #include <libempathy/empathy-ft-factory.h>
 
 #define SCHEMES           "([a-zA-Z\\+]+)"
-#define INVALID_CHARS     " \n\"'"
+#define INVALID_CHARS     "\\s\"'"
 #define INVALID_CHARS_EXT INVALID_CHARS "\\[\\]<>(){},;:?"
 #define BODY              "([^"INVALID_CHARS"]+)"
 #define BODY_END          "([^"INVALID_CHARS"]*)[^"INVALID_CHARS_EXT".]"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]