Remove quotes after : in CSVArray
This commit is contained in:
parent
22d9c80367
commit
0be6fa1958
2 changed files with 4 additions and 2 deletions
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 a new issue