MCPcopy
hub / github.com/openclaw/clawsweeper / slug

Function slug

scripts/build-docs-site.mjs:1009–1015  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1007}
1008
1009function slug(text) {
1010 return text
1011 .toLowerCase()
1012 .replace(/`/g, "")
1013 .replace(/[^a-z0-9]+/g, "-")
1014 .replace(/^-|-$/g, "");
1015}
1016
1017function escapeHtml(value) {
1018 return String(value).replace(

Callers 6

prepareFunction · 0.90
publishResultFunction · 0.90
isTrustedPrRepairIntakeFunction · 0.90
clusterReportPathFunction · 0.90
markdownToHtmlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected