MCPcopy Create free account
hub / github.com/basecamp/omarchy / parseBandStatus

Function parseBandStatus

shell/plugins/panels/network/Model.js:75–89  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

73}
74
75function parseBandStatus(raw) {
76 var next = parseKeyValue(raw)
77 var tokens = String(next.available || "").split(" ")
78 var available = []
79
80 for (var i = 0; i < tokens.length; i++) {
81 if (tokens[i] !== "") available.push(tokens[i])
82 }
83
84 return {
85 band: next.band || "",
86 selected: next.selected || "auto",
87 available: available
88 }
89}
90
91function decodeIwSsid(value) {
92 var raw = String(value || "")

Callers

nothing calls this directly

Calls 1

parseKeyValueFunction · 0.70

Tested by

no test coverage detected