MCPcopy Index your code
hub / github.com/larksuite/cli / normalizeService

Function normalizeService

scripts/issue-labels/index.js:153–157  ·  view source on GitHub ↗
(svc)

Source from the content-addressed store, hash-verified

151 const hits = new Set();
152
153 function normalizeService(svc) {
154 const s = String(svc || "").toLowerCase();
155 if (s === "docs") return "doc";
156 return s;
157 }
158
159 // 1) Explicit domain labels in text: domain/<service>
160 const explicit = new RegExp(`\\bdomain\\/(${DOMAIN_REGEX_ALTERNATION})\\b`, "gi");

Callers 1

collectDomainsFromTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected