MCPcopy Index your code
hub / github.com/witheve/Eve / dasherize

Function dasherize

src/util.ts:171–174  ·  view source on GitHub ↗
(text:string)

Source from the content-addressed store, hash-verified

169//---------------------------------------------------------
170
171export function dasherize(text:string) {
172 if(text[0] === "/") text = text.slice(1);
173 return text.replace(/\//g, "-");
174}
175
176function gistIdFromUrl(url:string) {
177 if(url.indexOf("gist.github.com") !== -1 ||

Callers 1

writeToGistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected