Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/supported-live.test.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,6 +33,15 @@ test("canonicalBrand folds brand aliases onto the canonical name", () => {
assert.equal(canonicalBrand("Redragon"), "Redragon");
assert.equal(canonicalBrand("Logitec"), "Logitech");
assert.equal(canonicalBrand("glorius"), "Glorious");
assert.equal(canonicalBrand("redrasgon"), "Redragon");
assert.equal(canonicalBrand("Raser"), "Razer");
assert.equal(canonicalBrand("Logitech G"), "Logitech");
assert.equal(canonicalBrand("thecosmicbyte"), "Cosmic Byte");
assert.equal(canonicalBrand("Dunevoyger"), "Dune Voyager");
assert.equal(canonicalBrand("HSXJ"), "HXSJ");
assert.equal(canonicalBrand("Razer Basilisk"), "Razer");
assert.equal(canonicalBrand("MX Anywhere 3s"), "Logitech");
assert.equal(canonicalBrand("ROG"), "ASUS ROG");
assert.equal(canonicalBrand("rapoo Vpro"), "Rapoo");
assert.equal(canonicalBrand("Eyooso"), "E-YOOSO");
assert.equal(canonicalBrand("e-yooso"), "E-YOOSO");
Expand Down
13 changes: 13 additions & 0 deletions src/supported-live.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,9 +35,22 @@ const CANONICAL_BRAND_BY_KEY = new Map(

const BRAND_TYPOS: Record<string, string> = {
reddragon: "Redragon",
redrasgon: "Redragon",
logitec: "Logitech",
logitechg: "Logitech",
glorius: "Glorious",
raser: "Razer",
razerbasilisk: "Razer",
razerviper8k: "Razer",
thecosmicbyte: "Cosmic Byte",
dunevoyger: "Dune Voyager",
hsxj: "HXSJ",
rapoovpro: "Rapoo",
mxanywhere2: "Logitech",
mxanywhere3: "Logitech",
mxanywhere3s: "Logitech",
hyperxpulsefirehastle2: "HyperX",
rog: "ASUS ROG",
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/supported-mice.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -557,6 +557,6 @@ export const MICE: Mouse[] = [
note: "Protocol unknown" },
{ brand: "DeadSkull", model: "Orbit Wired", status: "unknown", req: 1,
note: "Protocol unknown" },
{ brand: "IGM", model: "IGM-6000", status: "unknown", req: 1,
{ brand: "ISY", model: "IGM-6000", status: "unknown", req: 1,
note: "Protocol unknown" },
];