From 9376ef90680ceb270244f7edf33c142f117d2aad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 7 Sep 2023 14:37:53 +0200 Subject: [PATCH] Drop useless groups in FileUtil::LINK_REGEX --- wcfsetup/install/files/lib/util/FileUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 25347d55a8..478001603e 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -35,7 +35,7 @@ final class FileUtil /** * A regular expression that allows to detect links within text. */ - public const LINK_REGEX = "#(?i)\\b((?:https?://|www\\d{0,3}[.]|(?:[a-z0-9\\-]+[.])+[a-z]{2,4}/)(?:[^\\s()<>]+|\\((?:[^\\s()<>])*\\))+(?:\\((?:[^\\s()<>])*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))#iS"; + public const LINK_REGEX = "#(?i)\\b((?:https?://|www\\d{0,3}[.]|(?:[a-z0-9\\-]+[.])+[a-z]{2,4}/)(?:[^\\s()<>]+|\\([^\\s()<>]*\\))+(?:\\([^\\s()<>]*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))#iS"; /** * Prepares the temporary folder and returns its path. -- 2.20.1