From c426a24029d3addc16a6f9d634ceb60fbb827e76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Smyrek?=
Date: Wed, 17 Mar 2021 11:08:56 +0100
Subject: [PATCH] Restored group in domain matcher
---
packages/ckeditor5-link/src/autolink.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/ckeditor5-link/src/autolink.js b/packages/ckeditor5-link/src/autolink.js
index cefb0924433..15d2edf43a2 100644
--- a/packages/ckeditor5-link/src/autolink.js
+++ b/packages/ckeditor5-link/src/autolink.js
@@ -55,7 +55,7 @@ const URL_REG_EXP = new RegExp(
'(' +
'(www.|(\\S+@))' +
// Host & domain names.
- '(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+' +
+ '((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+' +
// TLD identifier name.
'(?:[a-z\\u00a1-\\uffff]{2,63})' +
')' +