1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-07-12 05:08:51 +00:00
This commit is contained in:
Marcus 🇵🇸 2025-06-25 17:09:15 +00:00 committed by GitHub
commit 3b1dd1c256
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -395,8 +395,7 @@ class Strings
{
return 'https?:// # http or https protocol
(?:
[^/\s\xA0`!()\[\]{};:\'",<>?«»“”‘’.] # Domain can\'t start with a .
[^/\s\xA0`!()\[\]{};:\'",<>?«»“”‘’]+ # Domain can\'t end with a .
[^/\s\xA0`!()\[\]{};:\'",<>?«»“”‘’.]+
\.
[^/\s\xA0`!()\[\]{};:\'".,<>?«»“”‘’]+/? # Followed by a slash
)