MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / clean

Method clean

packages/llm/src/utils/string.ts:2–4  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1export default class StringUtils {
2 static clean(text: string) {
3 return text.split('#').shift().replace(/[^A-Za-z0-9\s]/g, '')
4 }
5}

Callers 3

runFunction · 0.80
getDocumentsMethod · 0.80
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected