mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Merge pull request #521 from BelleNottelling/fix-update-msg
Fix misbehaving isPreviewVersion()
This commit is contained in:
1 file changed
+1
-1
@@ -49,7 +49,7 @@ class Box_Update
|
||||
*/
|
||||
public function isPreviewVersion(){
|
||||
$reg = '^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$^';
|
||||
if(preg_match($reg, $this->getLatestVersion) === '0'){
|
||||
if(preg_match($reg, $this->getLatestVersion())){
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user