Skip to content

Commit 8475cf3

Browse files
author
Rafael Grigorian
committed
Fixed #56
1 parent 05e7b8b commit 8475cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function getVarnishServerConfigInfo () {
149149
$servers [] = (object) [
150150
"host" => $server->host,
151151
"port" => $server->port,
152-
"magento" => $responseCode == 200 && preg_match ( "/Magento (\d+\.\d+\.\d+)/", $response, $match )
152+
"magento" => $responseCode == 200 && preg_match ( "/Magento (\d+\.\d+\.\d+(?:-p\d)?)/", $response, $match )
153153
? array_pop ( $match )
154154
: "Not Detected",
155155
"version" => $responseCode == 200 && preg_match ( "/Module (\d+\.\d+\.\d+)/", $response, $match )

0 commit comments

Comments
 (0)