chore: lint and fmt
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export const decodeBase64ToUTF8 = (content: string): string => {
|
||||
return decodeURIComponent(
|
||||
atob(content)
|
||||
.split('')
|
||||
.map((char) => `%${('00' + char.charCodeAt(0).toString(16)).slice(-2)}`)
|
||||
.join('')
|
||||
.split("")
|
||||
.map((char) => `%${("00" + char.charCodeAt(0).toString(16)).slice(-2)}`)
|
||||
.join("")
|
||||
)
|
||||
}
|
||||
export const encodeUTF8ToBase64 = (content: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user