From da24931d5019fadbbe76353815bc05c75635c534 Mon Sep 17 00:00:00 2001 From: konradoboza Date: Wed, 8 Apr 2020 13:41:52 +0200 Subject: [PATCH] handled non-essential backslashes for cases like mailto:foo@bar.pl --- .../public/js/scripts/fieldType/base/base-rich-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js b/src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js index 8887f55cc8..1784384262 100644 --- a/src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js +++ b/src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js @@ -401,7 +401,7 @@ links.forEach((link) => { const href = link.getAttribute('href'); - const schemaPattern = /^[a-z0-9]+:\/\//i; + const schemaPattern = /^[a-z0-9]+:\/?\/?/i; const protocolHref = protocolPrefix.concat(href); if (!href) {