MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / norm

Function norm

rusense_flasher/js/flasher.js:133–133  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

131
132 /* 6 — Verify chip family */
133 const norm = (s) => s.replace(/[-_ ]/g, "").toUpperCase();
134 if (!norm(chip).startsWith(norm(build.chipFamily))) {
135 throw new Error(
136 "Wrong chip! Expected " + build.chipFamily + " but got " + chip + "."

Callers 1

flasher.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected