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 parsing of 'false' as Boolean option value #1382

Merged
merged 1 commit into from Jan 5, 2020

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Dec 23, 2019

Rouge allows for options to be passed to a lexer's constructor method. The options are parsed from strings. As noted in #1379, the string 'false' was not being converted to the value false. This PR fixes that. It also adds a rudimentary series of tests to ensure that values are being properly parsed.

This fixes #1380.

@pyrmont pyrmont self-assigned this Dec 23, 2019
@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Dec 23, 2019
@pyrmont pyrmont merged commit e22ce33 into rouge-ruby:master Jan 5, 2020
@pyrmont pyrmont removed the needs-review The PR needs to be reviewed label Jan 5, 2020
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.

CGI-style parameter set to false isn't recognised as false
1 participant