Remove quotes after : in CSVArray

This commit is contained in:
Shivam Mathur 2023-06-12 05:40:08 +05:30
parent 22d9c80367
commit 0be6fa1958
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View File

@ -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);
}

View File

@ -249,7 +249,8 @@ export async function CSVArray(values_csv: string): Promise<Array<string>> {
.trim()
.replace(/^["']|["']$|(?<==)["']/g, '')
.replace(/=(((?!E_).)*[?{}|&~![()^]+((?!E_).)+)/, "='$1'")
.replace(/=(.*?)(=.*)/, "='$1$2'");
.replace(/=(.*?)(=.*)/, "='$1$2'")
.replace(/:\s*["'](.*?)/g, ':$1');
})
.filter(Boolean);
}