X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FStrings.php;h=d6583b9c61c0eb29993ee350d2eb2683e3592c3a;hb=0c738c4f8bd820519a4b46b27f419dbc921721f5;hp=681edb1c87711d8ae6d6f9cb84e4e076f86a7c9c;hpb=8f96e383a7a72de5619520672092cd6a110442d4;p=friendica.git diff --git a/src/Util/Strings.php b/src/Util/Strings.php index 681edb1c87..d6583b9c61 100644 --- a/src/Util/Strings.php +++ b/src/Util/Strings.php @@ -361,7 +361,10 @@ class Strings ( # Capture 1: entire matched URL https?:// # http or https protocol (?: - [^/\s.][^/\s]+[.][^\s/]+/? # looks like domain name followed by a slash + [^/\s`!()\[\]{};:\'",<>?«»“”‘’.] # Domain can\'t start with a . + [^/\s`!()\[\]{};:\'",<>?«»“”‘’]+ # Domain can\'t end with a . + \. + [^/\s`!()\[\]{};:\'".,<>?«»“”‘’]+/? # Followed by a slash ) (?: # One or more: [^\s()<>]+ # Run of non-space, non-()<>