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

pull/9954/head
Joel 1 year ago committed by GitHub
parent 4da0b70694
commit 81d4d8cea1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save