From e68a74a71cccd8cae8ca6d7364451e9ca5aaafeb Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 26 Jul 2020 06:03:08 +0530 Subject: [PATCH] Limit swoole support to PHP 7.4 --- dist/index.js | 4 ++-- src/extensions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index fb12ece4..7af22aea 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3660,8 +3660,8 @@ async function addExtensionDarwin(extension_csv, version, pipe) { // match 5.6xdebug to 8.0xdebug, 5.6swoole to 8.0swoole // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf // match 7.1pcov to 8.0pcov - case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|swoole)/.test(version_extension): - case /(5\.6|7\.[0-4])(grpc|protobuf)/.test(version_extension): + case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension): + case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension): command = 'add_brew_extension ' + ext_name; break; diff --git a/src/extensions.ts b/src/extensions.ts index dea57997..05cf055b 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -68,8 +68,8 @@ export async function addExtensionDarwin( // match 5.6xdebug to 8.0xdebug, 5.6swoole to 8.0swoole // match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf // match 7.1pcov to 8.0pcov - case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|swoole)/.test(version_extension): - case /(5\.6|7\.[0-4])(grpc|protobuf)/.test(version_extension): + case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension): + case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension): command = 'add_brew_extension ' + ext_name; break;