Loki-Code201 / foodwise

With this app one will be able to reduce food waste as well as track food purchases. It will enable a user to monitor their food inventory.
https://loki-code201.github.io/foodwise/
MIT License
1 stars 1 forks source link

handle spaces and invalid input in the Pantry form #53

Closed KasonBraley closed 3 years ago

KasonBraley commented 3 years ago

Going to use the string trim() method to handle this bug.

KasonBraley commented 3 years ago

add some regex for the food name to limit to just letters

KasonBraley commented 3 years ago

/^[a-zA-Z]+$/ this is the regex being used