[evolution] EHTMLEditorView - Don't include non-breaking space while recognizing links



commit 127c77851eeb5d21ef35a5e4f6570ec841923a64
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Dec 2 10:57:49 2015 +0100

    EHTMLEditorView - Don't include non-breaking space while recognizing links

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index b148ac3..ef98d5f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -37,7 +37,7 @@
 
 /* stephenhay from https://mathiasbynens.be/demo/url-regex */
 #define URL_PROTOCOLS "news|telnet|nntp|file|https?|s?ftp||webcal|localhost|ssh"
-#define URL_PATTERN "((((" URL_PROTOCOLS ")\\:\\/\\/)|(www\\.|ftp\\.))[^\\s\\/\\$\\.\\?#].[^\\s]*)"
+#define URL_PATTERN "((((" URL_PROTOCOLS ")\\:\\/\\/)|(www\\.|ftp\\.))[^\\s\\/\\$\\.\\?#].[^\\s]*)(?=&nbsp;)"
 #define URL_PATTERN_SPACE URL_PATTERN "\\s"
 /* Taken from camel-url-scanner.c */
 #define URL_INVALID_TRAILING_CHARS ",.:;?!-|}])\""


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