-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple char replacements (#1666)
* Support multiple char replacements This adds support for mapping multiple chars to one char in the CAPTCHA (e.g. `1`, `I`, `l` etc can all map to `i`). This is done by reworking the `CHAR_REPLACEMENTS` map to read the "replacement" chars from its keys and "replaced" chars from its values (now an array). Additionally, this extracts the font creation/parsing to a (lazy) static value, so that the font doesn't have to be recreated every time. * Update src/internet_identity/src/anchor_management/registration.rs * Clarify replacement
- Loading branch information
Showing
3 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters