This PR adds a script that removes extra whitespace from fields in Requests and Volunteers tables that contain string values. Leading whitespace, trailing whitespace, or multiple consecutive spaces in a string are all considered extra whitespace.
Usage
To run the script, open the command line to the project directory and execute the following:
npm run remove-extra-whitespace [tableName] [fieldName]
Examples
npm run remove-extra-whitespace requests Name
npm run remove-extra-whitespace requests "Phone number"
npm run remove-extra-whitespace volunteers "First Name"
npm run remove-extra-whitespace volunteers "Last Name"
npm run remove-extra-whitespace volunteers "Please provide your contact phone number:"
This PR adds a script that removes extra whitespace from fields in
Requests
andVolunteers
tables that contain string values. Leading whitespace, trailing whitespace, or multiple consecutive spaces in a string are all considered extra whitespace.Usage
To run the script, open the command line to the project directory and execute the following:
npm run remove-extra-whitespace [tableName] [fieldName]
Examples
npm run remove-extra-whitespace requests Name
npm run remove-extra-whitespace requests "Phone number"
npm run remove-extra-whitespace volunteers "First Name"
npm run remove-extra-whitespace volunteers "Last Name"
npm run remove-extra-whitespace volunteers "Please provide your contact phone number:"