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

The pattern attribute may contain syntax that does not work with data binding syntax #10

Closed
ECorreia45 opened this issue Jan 5, 2022 · 1 comment
Assignees
Labels
wontfix This will not be worked on

Comments

@ECorreia45
Copy link
Contributor

The following will break the component

<input type="password" id="pwd" name="pwd"
  pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
  title="Must contain at least one  number and one uppercase and lowercase letter, and at least 8 or more characters">

This is because it tries to resolve {8,} thinking its a data binding.

We need a way to handle such cases when we have regex or something similar.

@ECorreia45 ECorreia45 added the bug Something isn't working label Jan 5, 2022
@ECorreia45 ECorreia45 self-assigned this Jan 5, 2022
@ECorreia45 ECorreia45 added wontfix This will not be worked on and removed bug Something isn't working labels Jan 6, 2022
@ECorreia45
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant