forked from cerc-io/cosmos-explorer
replace to replaceAll
This commit is contained in:
parent
7cf7ae9a1e
commit
4fbaec7fbb
@ -159,11 +159,7 @@ export default {
|
||||
if (percentage.test(value)) {
|
||||
return `${percent(value)}%`
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
return value.replaceAll('\\n', '\n')
|
||||
}
|
||||
|
||||
return value
|
||||
return value.replace(/(?:\\[rn])+/g, '\n')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user