MCPcopy Create free account
hub / github.com/cursor/cookbook / labelsMatch

Function labelsMatch

sdk/coding-agent-cli/src/agent.ts:459–461  ·  view source on GitHub ↗
(left: string, right: string)

Source from the content-addressed store, hash-verified

457}
458
459function labelsMatch(left: string, right: string) {
460 return normalizeLabel(left) === normalizeLabel(right)
461}
462
463function normalizeLabel(value: string) {
464 return value.toLowerCase().replace(/[^a-z0-9]+/g, "")

Callers 3

buildVariantLabelFunction · 0.85
addSelectionDetailFunction · 0.85
formatParamsLabelFunction · 0.85

Calls 1

normalizeLabelFunction · 0.85

Tested by

no test coverage detected