Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: separator change add too many backslash (#9949)

Joel81d4d8cea1d6
diff --git a/web/app/components/datasets/create/step-two/escape.ts b/web/app/components/datasets/create/step-two/escape.ts
index 098f43bc7f3..2e1c3a9d736 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')