Closed
Description
It has been noted that on Windows computers with an "Intel(R)... "-based COM port, the port is listed as simply "R" instead of "COM#". This appears to be because the parsing mechanism is just grabbing whatever string appears within parentheses (and there's a pair in parentheses near the front of the string that is found first) and is assuming that it contains the friendly name for the port.
Must fix this.
The parsing mechanism should:
- Determine if it's running on a Windows computer, and if so...
- Do a reverse search looking for "(COM" followed immediately by at least one numeric digit
- If the above is found, extract starting from "COM" and up to the first non-numeric digit or end of string.
- Return the extracted string as the port name
- If the reverse search fails, skip the port (don't add anything to the list).