Aligned some regex patterns
This commit is contained in:
parent
dbb6bfdf44
commit
01051b751b
5 changed files with 5 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ class AdobeReader extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html'))
|
||||
return $this->parse('/title="([\d\.]+)/');
|
||||
return $this->parse('/next: ([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class Arduino extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.arduino.cc/en/Main/Software'))
|
||||
return $this->parse('_<div class="blue-title">[\s]*ARDUINO ([\d\.]+)[\s]*</div>_');
|
||||
return $this->parse('/<div class="blue-title">[\s]*ARDUINO ([\d\.]+)[\s]*<\/div>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class PHP extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.php.net/downloads.php'))
|
||||
return $this->parse('_Current Stable</span>[\s]*PHP ([\d\.]+)_');
|
||||
return $this->parse('/Current Stable<\/span>[\s]*PHP ([\d\.]+)/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class VLC extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.videolan.org/vlc/download-windows.html'))
|
||||
return $this->parse('_//get\.videolan\.org/vlc/([\d\.]+)/win32/vlc-[\d\.]+-win32\.exe_');
|
||||
return $this->parse('_//get\.videolan\.org/vlc/[\d\.]+/win32/vlc-([\d\.]+)-win32\.exe_');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class Wireshark extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.wireshark.org/download.html'))
|
||||
return $this->parse('/>Stable Release \(([\d\.]+)\)/');
|
||||
return $this->parse('/Stable Release \(([\d\.]+)\)/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue