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



commit 85c2a8ab0d785a37ce6d30a7880f3dd01a4b687b
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 19:26:52 2016 +0100

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

 .../e-html-editor-selection-dom-functions.h        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.h 
b/web-extensions/composer/e-html-editor-selection-dom-functions.h
index c4cb183..b8ca5d0 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.h
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.h
@@ -28,7 +28,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 */


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