zkemail / zk-regex

A library to do regex verification in circom, adapted from the original zk-email. It additionally generates lookup tables for halo2-regex.
GNU General Public License v3.0
76 stars 27 forks source link

Revert "WIP - JS to TS" #30

Closed SoraSuegami closed 10 months ago

SoraSuegami commented 10 months ago

I found one problem in regex.ts. You modified the following parts to use a flat string instead of [string]. https://github.com/zkemail/zk-regex/blob/main/packages/compiler/src/regex.ts#L208-L297 However, each character can be represented as [string] if the character is an escape character.