mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-21 13:04:47 +07:00
Fix to handle wrong pecl versions with hyphen
This commit is contained in:
@ -292,7 +292,7 @@ export async function extensionArray(
|
||||
return extension
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/^(:)?(php[-_]|none|zend )/, '$1');
|
||||
.replace(/^(:)?(php[-_]|none|zend )|(-[^-]*)-/, '$1$3');
|
||||
})
|
||||
].filter(Boolean);
|
||||
}
|
||||
|
Reference in New Issue
Block a user