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

Remove extra dashes when auto generating key #177

Merged
merged 6 commits into from
Nov 17, 2019

Conversation

aaronraff
Copy link
Contributor

Closes: #165

This adds logic to strip out extra hyphens that are added when auto generating flag and segment keys. It also pulls the common logic out into a mixin to reduce redundant code. This also modifies the logic to remove beginning and trailing hyphens.

I went ahead and added a few tests for the mixin as well. Eventually, I would like to take a look at adding some Vue tests that actually make assertions against the UI components data.

@aaronraff
Copy link
Contributor Author

Not sure why the Lint check is just stuck...

@markphelps
Copy link
Collaborator

@aaronraff thanks this is great!

And thank you for adding some JS tests! Greatly appreciated!

Yeah idk whats going on with the Lint Check either..

@markphelps markphelps merged commit ab70528 into flipt-io:master Nov 17, 2019
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.

Auto populate key from name should strip extra dashes
2 participants