Skip to content

validateProfileName

validateProfileName(nameRaw): string

Defined in: core/dist/config/profiles.d.ts:17

Reject a profile name that is empty, ./.., or contains anything other than [A-Za-z0-9._-] (so it can never traverse out of .gsloth-settings/). Throws a clear error; returns the trimmed name on success.

string

string