MCPcopy Create free account
hub / github.com/Rello/analytics / sanitizeFileFragment

Function sanitizeFileFragment

tests/playwright/common.js:32–38  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

30}
31
32function sanitizeFileFragment(value) {
33 return String(value || '')
34 .trim()
35 .replace(/[^\w.-]+/g, '_')
36 .replace(/_+/g, '_')
37 .replace(/^_+|_+$/g, '');
38}
39
40function buildUniqueName(prefix, explicitName) {
41 if (explicitName) {

Callers 1

createCaptureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected