forked from LaconicNetwork/cosmos-explorer
replace to replaceAll
This commit is contained in:
1 parent
7cf7ae9a1e
commit
4fbaec7fbb
1 file changed
+1
-5
@@ -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')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user