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 single item shorthand list parsing bug #830

Merged
merged 2 commits into from
Jun 30, 2014

Conversation

danielgtaylor
Copy link
Contributor

This fixes a bug where shorthand lists made with [ and ] containing only
a single item would not be parsed correctly. The _eat_items utility function
did not take into account the fact that the list end character could be in the
first item. I've added a conditional to check for this case and not call
the _eat_items method, because the current behavior is expected for some
inputs that use _eat_items.

cc @jamesls

This fixes a bug where shorthand lists made with `[` and `]` containing only
a single item would not be parsed correctly. The `_eat_items` utility function
did not take into account the fact that the list end character could be in the
first item. I've added a conditional to check for this case and not call
the `_eat_items` method, because the current behavior is expected for some
inputs that use `_eat_items`.
@jamesls
Copy link
Member

jamesls commented Jun 30, 2014

:shipit: Looks good. Please be sure to add an entry to the CHANGELOG.rst before pushing to develop.

danielgtaylor added a commit that referenced this pull request Jun 30, 2014
Fix single item shorthand list parsing bug. Fixes #830.
@danielgtaylor danielgtaylor merged commit ba218c4 into aws:develop Jun 30, 2014
@danielgtaylor danielgtaylor deleted the shorthand-list-fix branch June 30, 2014 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants