MCPcopy
hub / github.com/Narcooo/inkos / normalizeSkillId

Function normalizeSkillId

packages/studio/src/pages/skill-ui-state.ts:49–51  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

47}
48
49export function normalizeSkillId(value: string): string {
50 return value.trim().toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-+|-+$/g, "");
51}
52
53export function splitSkillList(value: string): string[] {
54 const out: string[] = [];

Callers 2

toggleSelectedSkillIdsFunction · 0.70
skillDraftToPayloadFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected