mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Remove quotes after :
in CSVArray
This commit is contained in:
parent
22d9c80367
commit
0be6fa1958
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -1200,7 +1200,8 @@ async function CSVArray(values_csv) {
|
|||||||
.trim()
|
.trim()
|
||||||
.replace(/^["']|["']$|(?<==)["']/g, '')
|
.replace(/^["']|["']$|(?<==)["']/g, '')
|
||||||
.replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'")
|
.replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'")
|
||||||
.replace(/=(.*?)(=.*)/, "='$1$2'");
|
.replace(/=(.*?)(=.*)/, "='$1$2'")
|
||||||
|
.replace(/:\s*["'](.*?)/g, ':$1');
|
||||||
})
|
})
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,8 @@ export async function CSVArray(values_csv: string): Promise<Array<string>> {
|
|||||||
.trim()
|
.trim()
|
||||||
.replace(/^["']|["']$|(?<==)["']/g, '')
|
.replace(/^["']|["']$|(?<==)["']/g, '')
|
||||||
.replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'")
|
.replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'")
|
||||||
.replace(/=(.*?)(=.*)/, "='$1$2'");
|
.replace(/=(.*?)(=.*)/, "='$1$2'")
|
||||||
|
.replace(/:\s*["'](.*?)/g, ':$1');
|
||||||
})
|
})
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user