replace \r

This commit is contained in:
liangping 2023-06-20 07:19:51 +08:00
parent 5b7b4ec10b
commit b3b080b22c

View File

@ -350,7 +350,7 @@ export const useFormatter = defineStore('formatter', {
}
},
multiLine(v: string) {
return v ? v.replaceAll('\\n', '\n') : '';
return v ? v.replace(/\\n|\\r/g, '\n') : '';
},
hexToString(hex: string) {
if (hex) {