Skip to content

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

@moormaster

Description

@moormaster

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions