@@ -20,7 +20,7 @@ class UrlValidator extends ConstraintValidator
const PATTERN = '~^
(%s):// # protocol
(
- ([\pL\pN-]+\.)+[\pL]+ # a domain name
+ ([\pL\pN\pS-]+\.)+[\pL]+ # a domain name
| # or
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # a IP address
@@ -83,6 +83,7 @@ class UrlValidatorTest extends \PHPUnit_Framework_TestCase
array('http://مثال.آزمایشی/'),
array('http://실례.테스트/'),
array('http://العربية.idn.icann.org/'),
+ array('http://☎.com/'),
);
}