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

Function sanitizeNameFragment

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

Source from the content-addressed store, hash-verified

23}
24
25function sanitizeNameFragment(value) {
26 return String(value || '')
27 .replace(/[^\w\s-]/g, '')
28 .trim()
29 .replace(/\s+/g, ' ');
30}
31
32function sanitizeFileFragment(value) {
33 return String(value || '')

Callers 1

buildUniqueNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected