Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
function
sanitizeNameFragment(value) {
26
return
String(value ||
''
)
27
.replace(/[^\w\s-]/g,
''
)
28
.trim()
29
.replace(/\s+/g,
' '
);
30
}
31
32
function
sanitizeFileFragment(value) {
33
return
String(value ||
''
)
Callers
1
buildUniqueName
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected