jwoertink / nacha

A Crystal shard for parsing and generating Nacha (ACH) files
MIT License
4 stars 0 forks source link

Entry detail doesn't account for really long names, or special characters #14

Open jwoertink opened 1 year ago

jwoertink commented 1 year ago

Short names are padded, but really long names aren't truncated. I also don't think NACHA allows for extra characters... Like if someone sets their name as X Æ A-12, for example.. or maybe some random emoji with apostrophe and such. These may need to be stripped to just a-zA-Z0-9\s or something

https://github.com/jwoertink/nacha/blob/290da99b0c2662ab6dcfb3f23f0416cfcd7eb928/src/nacha/entry_detail.cr#L119