mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
🎨 style: fix whitespace issues
This commit is contained in:
parent
8aabeaecc3
commit
5458b1c533
16 changed files with 35 additions and 35 deletions
|
@ -9,10 +9,10 @@
|
|||
// See https://en.wikipedia.org/wiki/Email_address#Internationalization
|
||||
// Code below adapted from Jackie Han: https://stackoverflow.com/a/64752311
|
||||
const byteString = atob(encodedString);
|
||||
|
||||
|
||||
// Convert byteString to an array of char codes.
|
||||
const charCodes = [...byteString].map(char => char.charCodeAt(0));
|
||||
|
||||
|
||||
// Use TypedArray.prototype.set() to copy the char codes into a Uint8Array.
|
||||
const bytes = new Uint8Array(charCodes.length);
|
||||
bytes.set(charCodes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue