Skip to content

3-6-3-crazy-regex. There is a mistake in the branch 'completed'. #163

Description

@obaibula

I refer to the findLastWord() and findFirstWord() methods.

If you add the string " ........." to the end of the note.txt file like this, the regex from the branch "completed" won't pass the tests, which is "\w+$".

As far as I am concerned, we should use something like "\w+(?=\W*$)" instead.

Please, let me know If I am mistaken here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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