* puttyconfig: Switch to string-based Validity format and deprecate MatchHosts
* Switch to more restrictive, reliable parsing
* Add validity string errors to docs
* Remove invalid test case
* Add test case
* Remove any spaces from user-provided input and use sanitized hostname
* Apply fixes from code review
* Tidy up errors, provide consistent detail about which field contains an error
* Disable docs lint for dots in heading
This is needed here, as there are 5 error messages which all start the same way but end differently.
* Catch a few more error cases
* Only delete old MatchHosts key after new Validity key has been written successfully
* Apply suggestions from code review
Co-authored-by: Zac Bergquist <[email protected]>
* Address Zac's comments from code review
---------
Co-authored-by: Zac Bergquist <[email protected]>