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: TokenPicker crash on bad characters by whitelisting good chars #150

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

dib542
Copy link
Collaborator

@dib542 dib542 commented Oct 3, 2022

The TokenPicker would crash the application if a bracket character was entered (ie. ( or ))

This should fix the issue by instead of catching known bad cases, to only accept good cases for our needs.

@dib542 dib542 linked an issue Oct 3, 2022 that may be closed by this pull request
Copy link
Collaborator Author

@dib542 dib542 left a comment

Choose a reason for hiding this comment

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

Tried everything I could reach on the keyboard and the app didn't crash: '_+{}|\][';;:"?><,./``~!@#$%^&*()_+=-

Token names with hyphens worked well. normal text filtering worked well.

@dib542 dib542 merged commit cbe1fff into main Oct 3, 2022
@dib542 dib542 deleted the 149-bug-tokenpicker-crashes-in-user-enters-a-bracket branch October 3, 2022 20:20
dib542 pushed a commit that referenced this pull request Oct 3, 2022
## [0.1.30](v0.1.29...v0.1.30) (2022-10-03)

### Fixes

* TokenPicker crash on bad characters by whitelisting good chars ([#150](#150)) ([cbe1fff](cbe1fff))
@dib542
Copy link
Collaborator Author

dib542 commented Oct 3, 2022

🎉 This PR is included in version 0.1.30 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@dib542 dib542 added the released label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: TokenPicker crashes in user enters a bracket
1 participant