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

Card holder name restriction #1975

Merged

Conversation

katina-anachkova
Copy link
Contributor

Closes #1761

Motivation and context

Enhance the component's usability for individuals with varying levels of technical expertise by adding an onInput handler that removes non-letters, non-spaces, and non-hyphens, and replaces consecutive hyphens/spaces with a single character.

Screenshots:

Before After
image image

Testing

Steps to test

  1. Go to a donation page
  2. Choose card payment
  3. Try adding numeric/other symbols in the name input field. Only Letters, spacing and hyphens should be allowed

Tested with different name combinations in regex 101 tool.

Copy link

github-actions bot commented Nov 11, 2024

✅ Tests will run for this PR. Once they succeed it can be merged.

@sashko9807 sashko9807 added the run tests Allows running the tests workflows for forked repos label Nov 20, 2024
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Nov 20, 2024
@sashko9807 sashko9807 merged commit 4e2b1cb into podkrepi-bg:master Nov 20, 2024
11 of 12 checks passed
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.

Disable the possibilty to write numbers in the card holder name during the payments
2 participants