Udo
Member since Nov 29, 2012
- Profile: /members/10460-udo.htm
- Comments: 3
Recent Blog Comments By Udo
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Nov 29, 2012 at 5:45 AM
Data starting with a comma, or more generally, starting with a delimiter is not handled correctly by CSVToArray. The "unquoted empty string" before this first delimiter is dropped. This problem was already reported before for IE, and I can confirm this problem also exists for Firef... read more »
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Nov 29, 2012 at 5:23 AM
Regarding the previous post: the check can be simplified to // When the data is empty (or null/undefined) we are done if (!strData) { return arrData; } Udo... read more »
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Nov 29, 2012 at 5:04 AM
When passing an empty data string ("") to the CSVToArray <bold>hangs in an endless loop</bold>. To fix this bug I added: // When the data is empty (or null/undefined) we are done if (!strData || !strData.length) { return arrData; } right after // Create an array ... read more »