ibeal / KitchenDB

A personal project to create something that can track inventory and recipes to suggest recipes to make determined by inventory
2 stars 0 forks source link

ingredients being split on commas #32

Closed ibeal closed 3 years ago

ibeal commented 3 years ago

currently any ingredients that have commas in the title are being split on commas, causing improperly formatted ingredients, which crashes the program

ibeal commented 3 years ago

bug found in the topLevelSplit, where strings were being split in the middle. Fixed the problem, problem should be fixed.

ibeal commented 3 years ago

Additionally, added a check on save, that validates that the ingredients field is formatted properly, if not, it gracefully handles the error, by displaying the offender, and preventing the save (while maintaining the current fields)