Skip to content

Commit

Permalink
fix: separator change add too many backslash (langgenius#9949)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Oct 28, 2024
1 parent 4da0b70 commit 81d4d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/datasets/create/step-two/escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function escape(input: string): string {
return ''

const res = input
.replaceAll('\\', '\\\\')
// .replaceAll('\\', '\\\\') // This would add too many backslashes
.replaceAll('\0', '\\0')
.replaceAll('\b', '\\b')
.replaceAll('\f', '\\f')
Expand Down

0 comments on commit 81d4d8c

Please sign in to comment.