Skip to content

Issue 05-02: Check if user entered regEx really matches the whole example #122

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

Closed
2 tasks done
moormaster opened this issue Apr 21, 2024 · 1 comment
Closed
2 tasks done

Comments

@moormaster
Copy link
Contributor

moormaster commented Apr 21, 2024

Website-link: https://coderdojopotsdam.github.io/regex-tutorial/en/05-02.html

Expected Behavior

Only regular expressions matching the whole numbers should be considered valid.

Actual Behavior

"[048]" is considered a valid answer to the challenge though it only matches the last digits of 20, 24, 28.

Actions to Reproduce

Enter "[048]" as user input into the challenge

Solution Description

If the reference regex starts with ^ and ends with $ the user input should also be checked against each whole example line.
See PR #121.

Languages

  • English (en)
  • German (de)
@moormaster
Copy link
Contributor Author

Solved by PR #121

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