Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix references to proceedingChars #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Aztec-Passport/apps/www/src/lib/zkemail/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function makeEmailAddressCharTable(): string {
const emailChars =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-@';
const precedingChars = '<: ';
const procedingChars = '>\r\n';
const proceedingChars = '>\r\n';
// set valid email chars
for (let i = 0; i < emailChars.length; i++) {
table[emailChars.charCodeAt(i)] = 1;
Expand All @@ -109,8 +109,8 @@ export function makeEmailAddressCharTable(): string {
table[precedingChars.charCodeAt(i)] = 2;
}
// set valid proceding chars
for (let i = 0; i < procedingChars.length; i++) {
table[procedingChars.charCodeAt(i)] = 3;
for (let i = 0; i < proceedingChars.length; i++) {
table[proceedingChars.charCodeAt(i)] = 3;
}
let tableStr = `global EMAIL_ADDRESS_CHAR_TABLE: [u8; ${tableLength}] = [\n`;
console.log();
Expand Down