MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / sanitizeName

Function sanitizeName

packages/webpack5/src/platforms/visionos.ts:7–11  ·  view source on GitHub ↗
(appName: string)

Source from the content-addressed store, hash-verified

5import { env } from '../';
6
7function sanitizeName(appName: string): string {
8 return appName.split("").filter((c) =>
9 /[a-zA-Z0-9]/.test(c)
10 ).join("");
11}
12function getDistPath() {
13 const appName = sanitizeName(basename(getProjectRootPath()));
14 return `${env.buildPath ?? "platforms"}/visionos/${appName}/app`;

Callers 1

getDistPathFunction · 0.70

Calls 3

joinMethod · 0.80
filterMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected