MCPcopy Index your code
hub / github.com/microsoft/SandDance / getFileNameError

Function getFileNameError

docs/app/js/sanddance-app.js:11753–11758  ·  view source on GitHub ↗
(displayName)

Source from the content-addressed store, hash-verified

11751const DataExportPicker = _DataExportPicker;
11752const illegalChars = '\\/:*?"<>|';
11753function getFileNameError(displayName) {
11754 if (!displayName) return (0, _language.strings).errorExportFilenameEmpty;
11755 for(let i = 0; i < illegalChars.length; i++){
11756 if (displayName.indexOf(illegalChars[i]) >= 0) return (0, _language.strings).errorExportFilenameCharacters(illegalChars);
11757 }
11758}
11759function removeExtensions(fileName) {
11760 exportTypes.forEach(([exportType])=>{
11761 const re = new RegExp(`\\.${exportType}`, "ig");

Callers 1

renderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected