mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix mysql regex for windows in extensions.ts
This commit is contained in:
parent
b0559f7f8e
commit
15c43e89cd
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -284,11 +284,11 @@ async function addExtensionWindows(extension_csv, version) {
|
||||
case /(5\.[3-6]|7\.0)pcov/.test(version_extension):
|
||||
add_script += await utils.getUnsupportedLog('pcov', version, 'win32');
|
||||
break;
|
||||
case /^5\.[3-6](mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
case /^5\.[3-6](?<!pdo_)(mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
add_script +=
|
||||
'\nAdd-Extension mysql\nAdd-Extension mysqli\nAdd-Extension mysqlnd';
|
||||
break;
|
||||
case /(?<!5\.[3-6])(mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
case /(?<!5\.[3-6])(?<!pdo_)(mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
add_script += '\nAdd-Extension mysqli\nAdd-Extension mysqlnd';
|
||||
break;
|
||||
case /^sqlite$/.test(extension):
|
||||
|
@ -183,12 +183,14 @@ export async function addExtensionWindows(
|
||||
add_script += await utils.getUnsupportedLog('pcov', version, 'win32');
|
||||
break;
|
||||
// match 5.3 to 5.6 - mysql, mysqli, mysqlnd
|
||||
case /^5\.[3-6](mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
case /^5\.[3-6](?<!pdo_)(mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
add_script +=
|
||||
'\nAdd-Extension mysql\nAdd-Extension mysqli\nAdd-Extension mysqlnd';
|
||||
break;
|
||||
// match 7.0 and newer mysql, mysqli and mysqlnd
|
||||
case /(?<!5\.[3-6])(mysql|mysqli|mysqlnd)$/.test(version_extension):
|
||||
case /(?<!5\.[3-6])(?<!pdo_)(mysql|mysqli|mysqlnd)$/.test(
|
||||
version_extension
|
||||
):
|
||||
add_script += '\nAdd-Extension mysqli\nAdd-Extension mysqlnd';
|
||||
break;
|
||||
// match sqlite
|
||||
|
Loading…
Reference in New Issue
Block a user