27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
|
From 8df33a2da490f1201da01f2d959b515e3d98ae9f Mon Sep 17 00:00:00 2001
|
||
|
From: Milan Crha <mcrha@redhat.com>
|
||
|
Date: Tue, 10 Apr 2018 16:08:28 +0200
|
||
|
Subject: Bug 795108 - Trailing bracket not stripped when linkifying URL inside
|
||
|
angle brackets
|
||
|
|
||
|
---
|
||
|
src/modules/webkit-editor/web-extension/e-editor-dom-functions.h | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.h b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.h
|
||
|
index 071c48e..4191d2c 100644
|
||
|
--- a/src/modules/webkit-editor/web-extension/e-editor-dom-functions.h
|
||
|
+++ b/src/modules/webkit-editor/web-extension/e-editor-dom-functions.h
|
||
|
@@ -31,7 +31,7 @@
|
||
|
#define URL_PATTERN "((?:(?:(?:" URL_PROTOCOLS ")\\:\\/\\/)|(?:www\\.|ftp\\.))[^\\s\\/\\$\\.\\?#].[^\\s]*+)"
|
||
|
#define URL_PATTERN_SPACE URL_PATTERN "\\s$"
|
||
|
/* Taken from camel-url-scanner.c */
|
||
|
-#define URL_INVALID_TRAILING_CHARS ",.:;?!-|}])\""
|
||
|
+#define URL_INVALID_TRAILING_CHARS ",.:;?!-|}])\">"
|
||
|
|
||
|
/* http://www.w3.org/TR/html5/forms.html#valid-e-mail-address */
|
||
|
#define E_MAIL_PATTERN \
|
||
|
--
|
||
|
cgit v0.12
|
||
|
|