Skip to content

isValidBranchName

Ensure the branch name is well-formed.

Signature

ts
function isValidBranchName(name: string): boolean;

Parameters

  • namerequired · string

    Branch name to check is valid.

Returns

  • boolean

    Returns true if the given branch name is well-formed.

Released under the MIT License.