mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-13 01:05:14 +00:00
Merge pull request #174 from nicofrand/dev
Add support for URLS with digits
This commit is contained in:
commit
83954e711d
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue