mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-03-30 18:02:47 +07:00
Strip backslash line continuation from extension inputs
This commit is contained in:
@@ -224,11 +224,11 @@ export async function extensionArray(
|
||||
.split(',')
|
||||
|
||||
.map(function (extension: string) {
|
||||
extension = extension.trim().replace(/^\\\s*/, '');
|
||||
if (/.+-.+\/.+@.+/.test(extension)) {
|
||||
return extension;
|
||||
}
|
||||
return extension
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/^(:)?(php[-_]|none|zend )|(-[^-]*)-/, '$1$3');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user