MCPcopy Create free account
hub / github.com/MALSync/MALSync / safeFileName

Function safeFileName

test/headless/test.js:147–149  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

145}
146
147function safeFileName(filename) {
148 return encodeURIComponent(filename.replace(/(^\/|\/$| )/g, '').replace(/\//g, '_')).toLowerCase();
149}
150
151function getRequestName(message) {
152 let url;

Callers 2

getRequestNameFunction · 0.85
PreparePageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected