Skip to content

fix(superflags): Check for keys without values#259

Merged
ajeetdsouza merged 1 commit intomasterfrom
ajeet/superflag
Mar 10, 2021
Merged

fix(superflags): Check for keys without values#259
ajeetdsouza merged 1 commit intomasterfrom
ajeet/superflag

Conversation

@ajeetdsouza
Copy link
Contributor

@ajeetdsouza ajeetdsouza commented Mar 10, 2021

Currently, superflags panic with an index out of bounds if we pass a key without a value, eg. "key1=value1; key2".

This PR fixes that. I've also added impl functions that throw errors to make the code more testable without throwing panics at the user.


This change is Reviewable

@ajeetdsouza ajeetdsouza merged commit ecb55b4 into master Mar 10, 2021
@ajeetdsouza ajeetdsouza deleted the ajeet/superflag branch March 10, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants