mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 12:07:06 +00:00
Prettier 2.0 (#393)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export const utf8ToB64 = (utf8Str: string): string => {
|
||||
return btoa(
|
||||
encodeURIComponent(utf8Str).replace(/%([0-9A-F]{2})/g, (_, args) => {
|
||||
return String.fromCharCode(parseInt(args, 16));
|
||||
})
|
||||
);
|
||||
};
|
||||
export const utf8ToB64 = (utf8Str: string): string => {
|
||||
return btoa(
|
||||
encodeURIComponent(utf8Str).replace(/%([0-9A-F]{2})/g, (_, args) => {
|
||||
return String.fromCharCode(parseInt(args, 16));
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user