MCPcopy Create free account
hub / github.com/hoothin/UserScripts / addAlias

Function addAlias

Pagetual/pagetual.user.js:4197–4204  ·  view source on GitHub ↗
(name, aliases)

Source from the content-addressed store, hash-verified

4195 let decoderList = [];
4196 let normalize = label => String(label || "").trim().toLowerCase();
4197 let addAlias = (name, aliases) => {
4198 if (aliases.indexOf(normalizedPreferred) !== -1) {
4199 pushDecoder(name);
4200 for (let i = 0; i < aliases.length; i++) {
4201 pushDecoder(aliases[i]);
4202 }
4203 }
4204 };
4205 let pushDecoder = label => {
4206 let raw = String(label || "").trim();
4207 if (raw && decoderList.indexOf(raw) === -1) {

Callers 1

Calls 1

pushDecoderFunction · 0.85

Tested by

no test coverage detected