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

Relax input acceptance criteria in AddressInputWidget. #161

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

cristian64
Copy link
Collaborator

The max length (previously 10) has been lifted, and the input is now self-corrected as the user enters text:

  • Invalid characters are removed from the input.
  • The optional 0x prefix is removed.
  • Any excess beyond the 8th character is removed.

For example, this now allows the user to paste an address that may contain spaces, which is a fairly common case (e.g. 80 12 34 56).

The max length (previously `10`) has been lifted, and the input is now
self-corrected as the user enters text:

- Invalid characters are removed from the input.
- The optional `0x` prefix is removed.
- Any excess beyond the 8th character is removed.

For example, this now allows the user to paste an address that may
contain spaces, which is a fairly common case (e.g. `80 12 34 56`).
Copy link
Collaborator

@dreamsyntax dreamsyntax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable, untested

@cristian64 cristian64 merged commit 5a3392d into aldelaro5:master Jun 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants