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

Doesnt handle empty strings properly #26

Open
pierrec opened this issue Jun 12, 2011 · 0 comments
Open

Doesnt handle empty strings properly #26

pierrec opened this issue Jun 12, 2011 · 0 comments

Comments

@pierrec
Copy link

pierrec commented Jun 12, 2011

If the data set contains an array with an empty string as the first element, it doesnt behave as expected.

This is due to the way weld detects arrays (cf line 198).
A simple fix would be to have at line 198:
} else if (value.length && typeof value[0] !== 'undefined') {

instead of
} else if (value.length && value[0]) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant