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 .po files with no headers #56

Merged
merged 2 commits into from
Aug 29, 2016
Merged

Fix parsing of .po files with no headers #56

merged 2 commits into from
Aug 29, 2016

Conversation

pettyalex
Copy link
Contributor

We have some header-less .po files that were broken by the plurals support update.

@mikeedwards
Copy link
Owner

Thanks for the update! Could you include a brief test that demonstrates how the pull request fixes your issue? Just something simple with a fixture similar to the one causing your issue. It'll help keep bugs like this from happening in the future.

@pettyalex
Copy link
Contributor Author

pettyalex commented Aug 29, 2016

This test captures what we saw when our po2json was updated to .4.3, and the pre-PR code will fail the test with "TypeError: Cannot read property 'plural-forms' of undefined" if there is no header. Test passes after the fix.

@mikeedwards mikeedwards merged commit 4520fb0 into mikeedwards:master Aug 29, 2016
@mikeedwards
Copy link
Owner

Excellent, the new release it out and should be up on npm any moment now. Thanks again for the fix!

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.

2 participants