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

Fix checking for invalid names used in unset #180

Merged

Conversation

boonwj
Copy link
Contributor

@boonwj boonwj commented Oct 25, 2019

Description

This PR fixes the way invalid command names are checked in unset. The existing implementation only checks the first command name, this PR makes sure all commands passed to unset are checked.

Fixes/Implements: # (issue)

Handle invalid command names passed to unset command

If New dependencies introduced

None

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have update README (If needed)

- Add invalid name check for all commands passed to unset
- Add tests
@auto-comment
Copy link

auto-comment bot commented Oct 25, 2019

🙏 Thank your for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible

boonwj and others added 3 commits October 25, 2019 17:15
This commit fixex the error raised by Reviewdog:

"regexp.MatchString in a loop has poor performance, consider using
regexp.Compile (staticcheck)"
Changes are based on the following comment by reviewdog:
"regexpMust: for const patterns like `^[a-zA-Z0-9\-_]+$`,
use regexp.MustCompile"
Copy link
Owner

@gopinath-langote gopinath-langote left a comment

Choose a reason for hiding this comment

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

Hello @boonwj Thanks for the PR.

@gopinath-langote gopinath-langote merged commit 31f64e8 into gopinath-langote:master Nov 11, 2019
@gopinath-langote gopinath-langote added the bug Bug in existing flow label Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing flow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants