joutvhu / fixed-width-parser

Fixed Width Parser: parse fixed width string to object and export object to fixed width string
MIT License
15 stars 3 forks source link

Trimming is done before the value is retrieved #31

Closed bakotat closed 3 years ago

bakotat commented 3 years ago

Currently, validate is executed with paddings present in the value. In case of decimals it will cause an exception even when keepPadding is set to Drop.

joutvhu commented 3 years ago

Your update will cause other tests to fail.

I guess you want spaces in numbers, so I've got an update here https://github.com/joutvhu/fixed-width-parser/pull/32/files

image