fix: separator change add too many backslash (#9949)
This commit is contained in:
@@ -3,7 +3,7 @@ function escape(input: string): string {
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
const res = input
|
const res = input
|
||||||
.replaceAll('\\', '\\\\')
|
// .replaceAll('\\', '\\\\') // This would add too many backslashes
|
||||||
.replaceAll('\0', '\\0')
|
.replaceAll('\0', '\\0')
|
||||||
.replaceAll('\b', '\\b')
|
.replaceAll('\b', '\\b')
|
||||||
.replaceAll('\f', '\\f')
|
.replaceAll('\f', '\\f')
|
||||||
|
Reference in New Issue
Block a user