tdecaluwe / node-edifact

Javascript stream parser for UN/EDIFACT documents.
https://www.npmjs.com/package/edifact
Apache License 2.0
50 stars 13 forks source link

First character of the first segment is ignored #17

Closed tdecaluwe closed 8 years ago

tdecaluwe commented 8 years ago

The current position increment at the end of the parsing loop also runs after the UNA header detection. This means the first character of the first segment is currently not read, with or without UNA header. This behaviour was introduced in fa86b5f.