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

Function sanitizeName

packages/webpack5/src/platforms/ios.ts:8–12  ·  view source on GitHub ↗
(appName: string)

Source from the content-addressed store, hash-verified

6import { getValue } from '../helpers/config';
7
8function sanitizeName(appName: string): string {
9 return appName.split("").filter((c) =>
10 /[a-zA-Z0-9]/.test(c)
11 ).join("");
12}
13function getDistPath() {
14 // if nativescript.config projectName is defined, use that custom name
15 // otherwise, default to base project directory name for project name

Callers 1

getDistPathFunction · 0.70

Calls 3

joinMethod · 0.80
filterMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected