From 81d4d8cea1d6c37eb4f2d4cf142ad12a667efc91 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 28 Oct 2024 18:01:33 +0800 Subject: [PATCH] fix: separator change add too many backslash (#9949) --- web/app/components/datasets/create/step-two/escape.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/datasets/create/step-two/escape.ts b/web/app/components/datasets/create/step-two/escape.ts index 098f43bc7f3d0c..2e1c3a9d736463 100644 --- a/web/app/components/datasets/create/step-two/escape.ts +++ b/web/app/components/datasets/create/step-two/escape.ts @@ -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')