Skip to content

Autofill Expiration Date Double Slash Fix#89

Merged
sshropshire merged 7 commits intomasterfrom
autofill_exp_date_double_slash_fix
May 26, 2020
Merged

Autofill Expiration Date Double Slash Fix#89
sshropshire merged 7 commits intomasterfrom
autofill_exp_date_double_slash_fix

Conversation

@sshropshire
Copy link
Contributor

Autofill Expiration Date Double Slash Fix

Summary of changes

Checklist

  • Added a changelog entry

int numChars = source.length();
for (int index = 0; index < numChars; index++) {
char c = source.charAt(index);
if (source.charAt(index) != '/') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to filter out anything that isn't a number?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most def! I went with a digitsOnly filter that's a good call.

Copy link
Contributor

@sestevens sestevens left a comment

Choose a reason for hiding this comment

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

Couple small suggestions, but overall looks good!

sshropshire and others added 2 commits May 26, 2020 11:39
Co-authored-by: sestevens <51723734+sestevens@users.noreply.github.com>
@sshropshire sshropshire merged commit f3df82a into master May 26, 2020
@sshropshire sshropshire deleted the autofill_exp_date_double_slash_fix branch May 26, 2020 18:51
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.

Autofill from Google Payments makes the card INVALID, because of wrong formating in EXPIRATION DATE

3 participants