Skip to content

validateProfileName

validateProfileName(nameRaw): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/profiles.ts:38

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