Use format string
This commit is contained in:
parent
2f87374476
commit
52417f6723
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class common extends utils {
|
||||||
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
|
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
|
||||||
function toSolidBytes (match, p1) {
|
function toSolidBytes (match, p1) {
|
||||||
// noinspection JSCheckFunctionSignatures
|
// noinspection JSCheckFunctionSignatures
|
||||||
return String.fromCharCode('0x' + p1)
|
return String.fromCharCode(`0x${p1}`)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue