You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Web - Show error when numbers entered in debit card holder name field #23175
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
No error on name field, 111111 passes the form validation
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.32-5 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
changed the title [-]Web - Wrong validation for debit card holder name[/-][+]Web - Show error when numbers entered in debit card holder name field[/+]on Jul 24, 2023
changed the title [-]Web - Show error when numbers entered in debit card holder name field[/-][+][$1000] Web - Show error when numbers entered in debit card holder name field[/+]on Jul 24, 2023
I agree, time bonus is applicable because the merge delay was on our end, the C+ approval was within 3 business days
I've updated my comment to show correct numbers
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Activity
melvin-bot commentedon Jul 19, 2023
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 19, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kbecciv commentedon Jul 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Wrong validation for debit card holder name
What is the root cause of that problem?
Root cause of the issue is the current regex which we are using to validate the debit card's name. The regex is defined in the
CONST.jsfile hereApp/src/CONST.js
Line 1121 in c0ece67
And we are using it here
App/src/pages/settings/Payments/AddDebitCardPage.js
Lines 76 to 78 in 60f4817
This regex will match true for partial numerals and all numerals both. That is why legal names like
11111111,steve123are shown as valid.Moreover this does not have and length limit either
What changes do you think we should make in order to solve the problem?
We shall introduce a new regex for debit card names which will match only alpha numeric with atleast one character and we can define it like this
And we can add a length condition using quantifiers too
The above expression will match alphanumeric strings with atleast one character and with length between a and b
This will reject the invalid names which contain all numbers
Along with this, we need to modify the current error message too as per our required characterset
Results
What alternative solutions did you explore? (Optional)
We can also change the regex for legal name and use it for both legal name and debit card name
We could further modify the regex if desired results change
[-]Web - Wrong validation for debit card holder name[/-][+]Web - Show error when numbers entered in debit card holder name field[/+][-]Web - Show error when numbers entered in debit card holder name field[/-][+][$1000] Web - Show error when numbers entered in debit card holder name field[/+]melvin-bot commentedon Jul 24, 2023
Job added to Upwork: https://www.upwork.com/jobs/~016cce6a5c4931cb3b
melvin-bot commentedon Jul 24, 2023
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 24, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)36 remaining items
melvin-bot commentedon Aug 3, 2023
@robertjchen, @sonialiap, @rushatgabhane, @chiragxarora Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Aug 7, 2023
@robertjchen, @sonialiap, @rushatgabhane, @chiragxarora 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
robertjchen commentedon Aug 9, 2023
Looks like this went out on production, what are the next steps here?
chiragxarora commentedon Aug 15, 2023
I believe this is ready for payment @sonialiap
chiragxarora commentedon Aug 15, 2023
not sure why the automation hasn't worked, I dont see the correct title to the GH here
chiragxarora commentedon Aug 17, 2023
Also, this qualifies for time bonus too @sonialiap
melvin-bot commentedon Aug 24, 2023
@robertjchen, @sonialiap, @rushatgabhane, @chiragxarora Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
chiragxarora commentedon Aug 25, 2023
Bump @sonialiap
sonialiap commentedon Aug 25, 2023
Sorry for the delay, just got back from OOO, working through the payments now!
sonialiap commentedon Aug 25, 2023
Payments:
chiragxarora commentedon Aug 25, 2023
This qualifies for time bonus too @sonialiap
sonialiap commentedon Aug 25, 2023
I agree, time bonus is applicable because the merge delay was on our end, the C+ approval was within 3 business days
I've updated my comment to show correct numbers
@chiragxarora offer sent for the bonus
@rushatgabhane please request $1500 for this issue
rushatgabhane commentedon Sep 5, 2023
created a manual request: https://staging.new.expensify.com/r/2726515974360083
JmillsExpensify commentedon Oct 5, 2023
$1,500 payment approved for @rushatgabhane based on BZ summary.