MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / fixFilename

Function fixFilename

src/utils/helpers.js:347–350  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

345 }
346 },
347 fixFilename(name) {
348 if (!name) return name;
349 return name.replace(/(\r\n)+|\r+|\n+|\t+/g, "").trim();
350 },
351 /**
352 * Creates a debounced function that delays invoking the input function until after 'wait' milliseconds have elapsed
353 * since the last time the debounced function was invoked. Useful for implementing behavior that should only happen

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected