Aligned some regex patterns

This commit is contained in:
Steffen Lange 2020-01-10 10:53:11 +01:00
parent dbb6bfdf44
commit 01051b751b
5 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ class AdobeReader extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html')) 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; return false;
} }
} }

View file

@ -6,7 +6,7 @@ class Arduino extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.arduino.cc/en/Main/Software')) 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; return false;
} }
} }

View file

@ -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('/Current Stable<\/span>[\s]*PHP ([\d\.]+)/');
return false; return false;
} }
} }

View file

@ -6,7 +6,7 @@ class VLC extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.videolan.org/vlc/download-windows.html')) 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; return false;
} }
} }

View file

@ -6,7 +6,7 @@ class Wireshark extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.wireshark.org/download.html')) if ($this->fetch('https://www.wireshark.org/download.html'))
return $this->parse('/>Stable Release \(([\d\.]+)\)/'); return $this->parse('/Stable Release \(([\d\.]+)\)/');
return false; return false;
} }
} }