PHP: update regex
This commit is contained in:
parent
de13d47f58
commit
f5df34a221
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ class PHP extends PatchBase {
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://www.php.net/downloads.php'))
|
if ($this->fetch('https://www.php.net/downloads.php'))
|
||||||
return $this->parse('/Current Stable<\/span>\s*PHP ([\d\.]+)/');
|
return $this->parse('/<h3>PHP [\d\.]+ \(([\d\.]+)\)<\/h3>/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue