diff --git a/dist/index.js b/dist/index.js index 3cb7a692..8ee2d068 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1200,7 +1200,8 @@ async function CSVArray(values_csv) { .trim() .replace(/^["']|["']$|(?<==)["']/g, '') .replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'") - .replace(/=(.*?)(=.*)/, "='$1$2'"); + .replace(/=(.*?)(=.*)/, "='$1$2'") + .replace(/:\s*["'](.*?)/g, ':$1'); }) .filter(Boolean); } diff --git a/src/utils.ts b/src/utils.ts index c8c047cb..e25928a4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -249,7 +249,8 @@ export async function CSVArray(values_csv: string): Promise> { .trim() .replace(/^["']|["']$|(?<==)["']/g, '') .replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'") - .replace(/=(.*?)(=.*)/, "='$1$2'"); + .replace(/=(.*?)(=.*)/, "='$1$2'") + .replace(/:\s*["'](.*?)/g, ':$1'); }) .filter(Boolean); }