WebThingsIO / serial-prober-node

node.js code for probing serial ports.
Mozilla Public License 2.0
0 stars 4 forks source link

Change test/example to use a case insensitive regular expression #3

Closed dhylands closed 5 years ago

dhylands commented 5 years ago

Not strictly needed for the particular example since the particular VID/PID only contain decimal digits.

However, making it use a regular expression makes things more obvious for people looking to add VIDs/PIDs which might contain alpha characters.

Different OSes may return upper or lower case alpha characters.