Skip to content

OnOffBooleanParser#47

Open
yuvalherziger wants to merge 2 commits into
masterfrom
on-off-parser
Open

OnOffBooleanParser#47
yuvalherziger wants to merge 2 commits into
masterfrom
on-off-parser

Conversation

@yuvalherziger
Copy link
Copy Markdown
Collaborator

No description provided.

@mpscholten
Copy link
Copy Markdown
Owner

Any reason we haven't merged this one yet? Otherwise good to go IMO

@apeiniger
Copy link
Copy Markdown

One little note here, I see in the code that it only returns false when it's actually "off". The standard behavior from html forms is I think to not return the variable as a whole or have it empty. Could we design it in a way that it return true for "on" and false in all other cases? For me it sounds strange that such a parser would give null as it's not really a Boolean Parser then. What do you think?

@mpscholten
Copy link
Copy Markdown
Owner

Agree, @yuvalherziger can we you push a change for that? Then we can merge this PR :)

@yuvalherziger
Copy link
Copy Markdown
Collaborator Author

Yep!

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.

3 participants