Fix ambiguous pattern

This commit is contained in:
Anatol Belski 2017-11-13 20:26:33 +01:00
parent c166da4131
commit 059f59a106

View File

@ -25,7 +25,7 @@ class UrlValidator extends ConstraintValidator
(%s):// # protocol (%s):// # protocol
(([\.\pL\pN-]+:)?([\.\pL\pN-]+)@)? # basic auth (([\.\pL\pN-]+:)?([\.\pL\pN-]+)@)? # basic auth
( (
([\pL\pN\pS-\.])+(\.?([\pL\pN]|xn\-\-[\pL\pN-]+)+\.?) # a domain name ([\pL\pN\pS\-\.])+(\.?([\pL\pN]|xn\-\-[\pL\pN-]+)+\.?) # a domain name
| # or | # or
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # an IP address \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # an IP address
| # or | # or