Skip to content

Commit

Permalink
Remove quotes after : in CSVArray
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jun 12, 2023
1 parent 22d9c80 commit 0be6fa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0be6fa1

Please sign in to comment.