Skip to content

Improve Windows port string parsing to prevent "R"-style ports #35

Closed
@PropGit

Description

@PropGit

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:

  1. Determine if it's running on a Windows computer, and if so...
  2. 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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions