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

[PM-16431] Bugfix - Handle expiry field placeholder values with uppercased values #12559

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

jprusik
Copy link
Contributor

@jprusik jprusik commented Dec 23, 2024

🎟️ Tracking

PM-16431

📔 Objective

Fix an issue autofilling card expiry date values when the field placeholders are uppercase

Note: this change/feature is behind the enable-new-card-combined-expiry-autofill feature-flag

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@jprusik jprusik requested a review from a team as a code owner December 23, 2024 15:12
@jprusik jprusik self-assigned this Dec 23, 2024
@@ -1514,7 +1514,7 @@ export default class AutofillService implements AutofillServiceInterface {
);

return CreditCardAutoFillConstants.CardAttributesExtended.find((attributeName) => {
const fieldAttributeValue = field[attributeName];
const fieldAttributeValue = field[attributeName]?.toLocaleLowerCase();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Enables us to maintain a list of lowercased patterns only

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.79%. Comparing base (0619ef5) to head (0205037).
Report is 14 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12559   +/-   ##
=======================================
  Coverage   33.78%   33.79%           
=======================================
  Files        2912     2912           
  Lines       90693    90693           
  Branches    17151    17152    +1     
=======================================
+ Hits        30641    30648    +7     
+ Misses      57666    57659    -7     
  Partials     2386     2386           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details2fc1d499-a1a1-49f5-8b42-033ae3aaa57e

New Issues

Severity Issue Source File / Package Checkmarx Insight
HIGH CVE-2024-11395 Npm-electron-33.2.1 Vulnerable Package

@jprusik jprusik added needs-qa Marks a PR as requiring QA approval and removed needs-qa Marks a PR as requiring QA approval labels Dec 23, 2024
@jprusik jprusik merged commit 7deba63 into main Dec 30, 2024
31 of 33 checks passed
@jprusik jprusik deleted the pm-16431 branch December 30, 2024 14:17
@djsmith85 djsmith85 linked an issue Dec 30, 2024 that may be closed by this pull request
1 task
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.

Card Expiration misformatted on Autofill
2 participants