MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / normalizeFilename

Function normalizeFilename

packages/utilities/src/files.ts:11–13  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

9}
10
11export function normalizeFilename(filename: string) {
12 return filename.replace(/\s|\/|&|"|'|`|>|<|\(|\)|\[|\]|;|:/g, '_');
13}
14
15const SUPPORTED_EXTENSIONS = ['png', 'jpg', 'jpeg', 'gif'];
16

Callers 3

files.test.tsFile · 0.90
handlerFunction · 0.90
profile.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected