biojs / generator-biojs-webcomponents

Generate all the boilerplate for your next BioJS tool!
http://training.biojs.net
MIT License
9 stars 2 forks source link

Improved validation for toolNameHuman and toolNameComputer #23

Closed Nikhil-Vats closed 5 years ago

Nikhil-Vats commented 5 years ago

Description

This improves the validation by -

  1. Showing error if user enters a toolNameComputer that either begins or ends with a hyphen ( - ).
  2. Showing error if user enters an empty string with only whitespaces for toolNameComputer.
  3. Removing extra spaces between the words for toolNameHuman which resulted in error earlier.
  4. Changing the colour of error to yellow so that you can differentiate between prompts and errors easily.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

Nikhil-Vats commented 5 years ago

Closing as these commits are already merged.