Skip to content

Commit

Permalink
lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottkember committed Jul 12, 2021
1 parent 269d5f3 commit 2f9efd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/utils/ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ const paths = ["usbserial", "tty.wchusbserial", "cu.SLAB_USBtoUART"];
const isMatchingPort = (port) => {
const { vendorId, path } = port;

if (vendorIds.includes(vendorId) || paths.find((p) => path.includes(p)))
if (
vendorIds.includes(vendorId.toLowerCase()) ||
paths.find((p) => path.toLowerCase().includes(p.toLowerCase()))
)
return true;

return false;
Expand Down

0 comments on commit 2f9efd0

Please sign in to comment.