-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add Currency validation to TextBoxExtensions#4469
Add Currency validation to TextBoxExtensions #4469NaftoliOst wants to merge 2 commits intoCommunityToolkit:main from
Conversation
Adds Currency validation option for textboxes
ghost
commented
Jan 25, 2022
Thanks NaftoliOst for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌
CLA assistant check
All CLA requirements met.
CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
❌ NaftoliOst sign now
You have signed the CLA already but the status is still pending? Let us recheck it.
XAML-Knight
commented
Jan 27, 2022
Hi @NaftoliOst , it appears you're trying to merge this code in from the main/master branch of your forked repo.
Please be aware of the rules & stipulations of submitting code into the Toolkit repo (these rules are in place due to issues we encounter when trying to merge in code from a user's main branch, into the toolkit's main branch):
NaftoliOst
commented
Jan 28, 2022
Ah, thanks for pointing that out @XAML-Knight
Is it possible for me to change that on this PR or do I need to close it and open a new one?
XAML-Knight
commented
Jan 28, 2022
Ah, thanks for pointing that out @XAML-Knight Is it possible for me to change that on this PR or do I need to close it and open a new one?
Go ahead and open a new PR from one of your dev branches, and then we'll also close this one.
Fixes #4188
Adds a currency validation option to the TextBoxExtensions
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The Decimal validation does not allow currency signs, e.g. $ or €.
What is the new behavior?
With the Currency validation type, any valid decimal with or without currency signs will be allowed.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
The code here could be refactored once The PR to add IsCurrency to StringExtensions gets merged.