diff --git a/modules/ClonezillaAlternative.php b/modules/ClonezillaAlternative.php index ac105ed..7914819 100644 --- a/modules/ClonezillaAlternative.php +++ b/modules/ClonezillaAlternative.php @@ -7,7 +7,7 @@ class ClonezillaAlternative extends PatchBase { } function check() : bool { if ($this->fetch('https://clonezilla.org/downloads.php')) - return $this->parse('/alternative stable<\/b>[\s]*-[\s]*([\d]+-[a-z]+)/'); + return $this->parse('/alternative stable<\/b>\s*-\s*([\d]+-[a-z]+)/'); return false; } } diff --git a/modules/ClonezillaStable.php b/modules/ClonezillaStable.php index cae1004..0bc6d5f 100644 --- a/modules/ClonezillaStable.php +++ b/modules/ClonezillaStable.php @@ -7,7 +7,7 @@ class ClonezillaStable extends PatchBase { } function check() : bool { if ($this->fetch('https://clonezilla.org/downloads.php')) - return $this->parse('/stable<\/b>[\s]*-[\s]*([\d\.-]+)/'); + return $this->parse('/stable<\/b>\s*-\s*([\d\.-]+)/'); return false; } } diff --git a/modules/CrossOver.php b/modules/CrossOver.php index 98ecd85..f0e7043 100644 --- a/modules/CrossOver.php +++ b/modules/CrossOver.php @@ -6,7 +6,7 @@ class CrossOver extends PatchBase { } function check() : bool { if ($this->fetch('https://www.codeweavers.com/products/more-information/changelog')) - return $this->parse('/([\d\.]+)<\/b>[\s]*CrossOver/'); + return $this->parse('/([\d\.]+)<\/b>\s*CrossOver/'); return false; } } diff --git a/modules/DOSBox.php b/modules/DOSBox.php index 5b03f2f..85b9817 100644 --- a/modules/DOSBox.php +++ b/modules/DOSBox.php @@ -6,7 +6,7 @@ class DOSBox extends PatchBase { } function check() : bool { if ($this->fetch('https://www.dosbox.com/download.php?main=1')) - return $this->parse('/Latest version:\s+([\d\.-]+)<\/a>/'); + return $this->parse('/Latest version:\s*([\d\.-]+)<\/a>/'); return false; } } diff --git a/modules/Krita.php b/modules/Krita.php index e7d35e1..44ea9dd 100644 --- a/modules/Krita.php +++ b/modules/Krita.php @@ -6,7 +6,7 @@ class Krita extends PatchBase { } function check() : bool { if ($this->fetch('https://krita.org/en/download/krita-desktop/')) - return $this->parse('/

Download Krita[\s]*([\d\.]+)<\/h3>/'); + return $this->parse('/

Download Krita\s+([\d\.]+)<\/h3>/'); return false; } } diff --git a/modules/PDF24.php b/modules/PDF24.php index f208b58..4804712 100644 --- a/modules/PDF24.php +++ b/modules/PDF24.php @@ -6,7 +6,7 @@ class PDF24 extends PatchBase { } function check() : bool { if ($this->fetch('https://en.pdf24.org/')) - return $this->parse('/PDF24 Creator<\/span>[\s]*([\d\.]+)<\/span>/'); + return $this->parse('/PDF24 Creator<\/span>\s*([\d\.]+)<\/span>/'); return false; } } diff --git a/modules/PHP.php b/modules/PHP.php index cd2b624..3023c99 100644 --- a/modules/PHP.php +++ b/modules/PHP.php @@ -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; } } diff --git a/modules/TeamViewer.php b/modules/TeamViewer.php index a1b96dd..1a153e7 100644 --- a/modules/TeamViewer.php +++ b/modules/TeamViewer.php @@ -6,7 +6,7 @@ class TeamViewer extends PatchBase { } function check() : bool { if ($this->fetch('https://www.teamviewer.com/en/download/windows/')) - return $this->parse('/
[\s]*([\d\.]+)/'); + return $this->parse('/
\s*([\d\.]+)/'); return false; } }