Terminal email address recognition patch

James Westby jw+xfce at jameswestby.net
Mon Jun 19 16:14:49 CEST 2006


Hi,

Please consider applying the attached patch to terminal, so that it
picks up email addresses that contain a + symbol in the local part
correctly.

Thanks,

James

-------------- next part --------------
Index: terminal/terminal/terminal-widget.c
===================================================================
--- terminal/terminal/terminal-widget.c	(revision 22157)
+++ terminal/terminal/terminal-widget.c	(working copy)
@@ -51,9 +51,9 @@
 #define MATCH_BROWSER2  "(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?" \
                         "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?"
 #if !defined(__GLIBC__)
-#define MATCH_MAILER    "(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+"
+#define MATCH_MAILER    "(mailto:)?[a-z0-9][a-z0-9.-+]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+"
 #else
-#define MATCH_MAILER    "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>"
+#define MATCH_MAILER    "\\<(mailto:)?[a-z0-9][a-z0-9.-+]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>"
 #endif
 
 


More information about the Xfce4-dev mailing list