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

Error Message Mismatch with Pattern Validation Rules #22

Open
sourcery-ai bot opened this issue Oct 31, 2024 · 0 comments
Open

Error Message Mismatch with Pattern Validation Rules #22

sourcery-ai bot opened this issue Oct 31, 2024 · 0 comments
Assignees

Comments

@sourcery-ai
Copy link

sourcery-ai bot commented Oct 31, 2024

The current error message for pattern validation does not accurately reflect the allowed characters. The validation pattern permits hyphens, apostrophes, and periods, but these characters are not mentioned in the error message. This discrepancy can lead to confusion for users who are trying to understand why their input is being rejected.

Suggested Fix:
Update the error message to include all valid characters as per the pattern validation rules. This will ensure that users receive accurate feedback when their input does not meet the validation criteria.

Action Items:

  1. Review the current pattern validation rules to confirm all allowed characters.
  2. Update the error message to include hyphens, apostrophes, and periods.
  3. Test the updated error message to ensure it accurately reflects the validation rules and provides clear guidance to users.

I created this issue for @chrisfalaska from #16 (comment).

Tips and commands

Interacting with Sourcery

  • Generate a plan of action: Comment @sourcery-ai plan on this issue.
  • Generate a pull request for this issue: Comment @sourcery-ai develop to
    generate a PR that addresses this issue.

Getting Help

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

No branches or pull requests

1 participant