mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +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