MCPcopy Create free account
hub / github.com/microsoft/SandDance / removeExtensions

Function removeExtensions

docs/app/js/sanddance-app.js:11759–11765  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

11757 }
11758}
11759function removeExtensions(fileName) {
11760 exportTypes.forEach(([exportType])=>{
11761 const re = new RegExp(`\\.${exportType}`, "ig");
11762 fileName = fileName.replace(re, "");
11763 });
11764 return fileName;
11765}
11766function columnReplacer(name, value) {
11767 if ((0, _sanddanceReact.SandDance).util.isInternalFieldName(name, true)) return undefined;
11768 return value === null ? "" : value;

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected