Keyang/node-csvtojson — pull request #7 by roodboi (2014-01-30 19:33:49+00:00)
Title: Fix for exception when processing rows

After running into a few exceptions when uploading gmail contact csvs - i dug a little deeper and noticed that in some instances when processing rows the parser array( parseRules) and the row array didn’t match up - In a lot of cases there was always one more row then parsers which caused an exception since the parser did not exist and the parse method could not be called - The fix I added was instead of iterating on the rows array - do it on the parsers - so that if the 2 arrays don’t match - then the service won’t just fail silently.