rainbow-csv icon indicating copy to clipboard operation
rainbow-csv copied to clipboard

Problem with empty fields with no spaces inbetween

Open kaofelix opened this issue 1 year ago • 1 comments

Hey, first of all, many thanks for this package! I've been jumping to vs-code sometimes to read CSV and this mostly eliminates the need to do so :)

However, I found an issue:

When there are empty values like this

col_a,col_b,col_c,col_d,col_e,col_f,col_g
some value,,,,,another, and another

after the first empty field, the syntax highlight doesn't work anymore:

CleanShot 2024-05-16 at 18 46 05

it works fine however, when there are spaces in-between the empty values:

CleanShot 2024-05-16 at 18 46 19

For what is worth, this works fine in vs-code.

kaofelix avatar May 16 '24 16:05 kaofelix

Thanks for the bug report! I'll look into it when I have time!

jcs090218 avatar May 17 '24 08:05 jcs090218

Fixed in 2a91a23abc05f26d513a1eb59c3e8cf1f42a0336.

jcs090218 avatar Jul 01 '24 05:07 jcs090218