openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Trim whitespace around user entries

Open pbix opened this issue 3 years ago • 0 comments

Is your enhancement proposal related to a problem? Please describe. I spent about 6 hours trying to figure out why my OMR was not connecting. In the end I found I had entered the IP address of my VPS into the wizard with an extra space after it. The space of course is not visible in the wizard field. Not sure what other fields might be also lead to trouble when a copy/past error leads to and extra space.

Describe the solution you'd like Might be helpful to just trim white space around wizard field entries before sending them to UCI.

Describe alternatives you've considered Flagging entries as invalid in this case in the wizard itself but it seems easier to me to just trim the fields when spaces and other no printing characters are known to not be appropriate.

Additional context N/A

pbix avatar Jun 26 '22 00:06 pbix