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

Handle multiple words before trailing space, and after leading space #572

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

kamal
Copy link
Contributor

@kamal kamal commented Jun 29, 2020

/^(\S*)(\s*)$/ will not match if there are multiple words before the trailing space due to it trying to match non-space characters before the trailing space.

Without the fix, the following test will fail

image

@ghost
Copy link

ghost commented Jun 29, 2020

There were the following issues with this Pull Request

  • Commit: ad977c0
    • ✖ message may not be empty
    • ✖ type may not be empty

You may need to change the commit messages to comply with the repository contributing guidelines.


🤖 This comment was generated by commitlint[bot]. Please report issues here.

Happy coding!

`/^(\S*)(\s*)$/` will not match if there are multiple words before the trailing space due to it trying to match non-space characters before the trailing space
@kamal kamal changed the title Handle multiple words before trailing space Handle multiple words before trailing space, and after leading space Jun 29, 2020
@armandabric armandabric self-assigned this Jul 1, 2020
Copy link
Collaborator

@armandabric armandabric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution! The code seems good for me 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants