EFeru / DbcParser

.NET CAN bus dbc file parser
MIT License
76 stars 28 forks source link

fixed parsing failure when additional spaces occur before semicolon #51

Closed Puchaczov closed 1 year ago

Puchaczov commented 1 year ago

when VAL_ or VALTABLE finish with semicolon that is prefixed by multiple spaces (3 in my case), then the ExtensionsAndHelpers.ToDictionary records variable will hold \r\n (there is space after). This causes the tokens will be an array of two items with values of string.Empty for both. This causing int.Parse to fail.

I've fixed that so it won't occur anymore.

Adhara3 commented 1 year ago

@Whitehouse112, please review this contribution. Thanks

A

Whitehouse112 commented 1 year ago

@Puchaczov thanks for spot the issue and fix it. It will be merged for the next release

Regards

Puchaczov commented 1 year ago

Thank you guys for the library, it is super usefull :-)