diff --git a/dist/index.js b/dist/index.js index 3029e2d4..f918bbb0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2903,11 +2903,9 @@ async function addExtensionDarwin(extension_csv, version) { case /(5\.[3-6]|7\.0)pcov/.test(version_extension): add_script += await utils.getUnsupportedLog('pcov', version, 'darwin'); return; - // 5.6igbinary to 8.9igbinary, 5.6imap to 8.9imap, match 5.6xdebug to 8.9xdebug, - // match 5.6amqp to 7.4amqp, 5.6grpc to 7.4grpc, 5.6imagick to 7.4imagick, 5.6protobuf to 7.4protobuf, 5.6swoole to 7.4swoole - // match 7.1pcov to 8.9pcov - case /(5\.6|7\.[0-4]|8\.[0-9])(igbinary|imap|xdebug)/.test(version_extension): - case /(5\.6|7\.[0-4])(amqp|grpc|imagick|protobuf|swoole)/.test(version_extension): + // match 5.6 to 8.9 for amqp, grpc, igbinary, imagick, imap, protobuf, swoole and xdebug + // match 7.1 to 8.9 for pcov + case /(5\.6|7\.[0-4]|8\.[0-9])(amqp|grpc|igbinary|imagick|imap|protobuf|swoole|xdebug)/.test(version_extension): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension): add_script += await utils.joins('\nadd_brew_extension', ext_name, ext_prefix); return; diff --git a/src/extensions.ts b/src/extensions.ts index fa0e262e..a4ca8494 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -66,13 +66,9 @@ export async function addExtensionDarwin( case /(5\.[3-6]|7\.0)pcov/.test(version_extension): add_script += await utils.getUnsupportedLog('pcov', version, 'darwin'); return; - // 5.6igbinary to 8.9igbinary, 5.6imap to 8.9imap, match 5.6xdebug to 8.9xdebug, - // match 5.6amqp to 7.4amqp, 5.6grpc to 7.4grpc, 5.6imagick to 7.4imagick, 5.6protobuf to 7.4protobuf, 5.6swoole to 7.4swoole - // match 7.1pcov to 8.9pcov - case /(5\.6|7\.[0-4]|8\.[0-9])(igbinary|imap|xdebug)/.test( - version_extension - ): - case /(5\.6|7\.[0-4])(amqp|grpc|imagick|protobuf|swoole)/.test( + // match 5.6 to 8.9 for amqp, grpc, igbinary, imagick, imap, protobuf, swoole and xdebug + // match 7.1 to 8.9 for pcov + case /(5\.6|7\.[0-4]|8\.[0-9])(amqp|grpc|igbinary|imagick|imap|protobuf|swoole|xdebug)/.test( version_extension ): case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension):