fix #138: change pattern to parse url with #

This commit is contained in:
Nicolas Lœuillet 2013-08-15 11:46:40 +02:00
parent 2021fc614e
commit 0b05568c9f
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Url
public function isCorrect()
{
$pattern = '|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i';
$pattern = '|^(.*:)//([a-z\-.]+)(:[0-9]+)?(.*)$|i';
return preg_match($pattern, $this->url);
}