Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c3efd1

Browse files
committed
update: 修复版本号检测
1 parent 4c1d555 commit 9c3efd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

think/SocketV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(App $app, array $config = [])
8686
$this->client->setCurlForbidReuse($this->config['curl_forbid_reuse'] ?? false);
8787

8888
$version = ltrim(InstalledVersions::getPrettyVersion('topthink/framework'), 'v');
89-
if (preg_match('~(\d+\.?)+~', $version)) {
89+
if (preg_match('~^(\d+\.?)+$~', $version)) {
9090
$this->newImplement = (bool) version_compare($version, '8.1.2', '>');
9191
}
9292
}

0 commit comments

Comments
 (0)