1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-08-13 16:54:00 -04:00

Merge pull request #174 from nicofrand/dev

Add support for URLS with digits
This commit is contained in:
Nicolas Lœuillet 2013-08-24 22:36:26 -07:00
commit 83954e711d

View File

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