mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-26 09:06:44 +07:00
Fix to handle wrong pecl versions with hyphen
This commit is contained in:
@ -231,7 +231,9 @@ export async function addExtensionLinux(
|
||||
let remove_script = '';
|
||||
await utils.asyncForEach(extensions, async function (extension: string) {
|
||||
const version_extension: string = version + extension;
|
||||
const [ext_name, ext_version]: string[] = extension.split('-');
|
||||
const [ext_name, ext_version]: string[] = extension
|
||||
.split(/-(.+)/)
|
||||
.filter(Boolean);
|
||||
const ext_prefix = await utils.getExtensionPrefix(ext_name);
|
||||
|
||||
switch (true) {
|
||||
|
||||
Reference in New Issue
Block a user