smhg / gettext-parser

Parse and compile gettext po and mo files, nothing more, nothing less
MIT License
160 stars 44 forks source link

Fix for issue with string input #1

Closed ragulka closed 10 years ago

ragulka commented 10 years ago

There was an issue when po data was passed as a string instead of bugger to poparser - the po data was set to this._file which was never used later - _lexer was looking for data in this._fileContents. This resulted in an error being thrown.

The current PR fixes this issue.

andris9 commented 10 years ago

Thanks a lot, good catch!

andris9 commented 10 years ago

Published to npm as v0.1.9