mattadlerpdx / rezcamper

0 stars 1 forks source link

Validate Campsite name from post #19

Closed kiraoyd closed 1 year ago

kiraoyd commented 1 year ago

Write and test the validateCampsite() function to validate a string received representing the users requests campsite name. This function, alongside the validateDate and validateEmail functions, will ultimately be called by the ReceivePost method: validatePost(). It will take a string as an argument, and return the normalized version of that string if valid.