mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 03:07:59 +08:00
fix: separator change add too many backslash (#9949)
This commit is contained in:
parent
4da0b70694
commit
81d4d8cea1
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user