forked from cerc-io/cosmos-explorer
replace \r
This commit is contained in:
parent
5b7b4ec10b
commit
b3b080b22c
@ -350,7 +350,7 @@ export const useFormatter = defineStore('formatter', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
multiLine(v: string) {
|
multiLine(v: string) {
|
||||||
return v ? v.replaceAll('\\n', '\n') : '';
|
return v ? v.replace(/\\n|\\r/g, '\n') : '';
|
||||||
},
|
},
|
||||||
hexToString(hex: string) {
|
hexToString(hex: string) {
|
||||||
if (hex) {
|
if (hex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user