Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api/command/support/commonValidationPatterns"

Index

Object literals

Const GitBranchRegExp

GitBranchRegExp: object

description

description: string = "initial version of the project, e.g., 1.2.3-SNAPSHOT"

displayName

displayName: string = "Branch"

pattern

pattern: RegExp = /^\w(?:[./]?[-\w])*$/

validInput

validInput: string = "a valid Git branch name, see" +" https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html"

Const GitHubNameRegExp

GitHubNameRegExp: object

description

description: string = "valid GitHub name"

displayName

displayName: string = "GitHub name"

pattern

pattern: RegExp = /^[-.\w]+$/

validInput

validInput: string = "a valid GitHub name which consists of alphanumeric, ., -, and _ characters"

Const GitShaRegExp

GitShaRegExp: object

description

description: string = "valid Git SHA"

displayName

displayName: string = "Sha"

pattern

pattern: RegExp = /^[0-9a-f]{40}$/

validInput

validInput: string = "40 hex digits, lowercase"

Const SemVerRegExp

SemVerRegExp: object

Validation pattern for semantic versions

description

description: string = "version of the project, e.g., 1.2.3-SNAPSHOT"

displayName

displayName: string = "Version"

maxLength

maxLength: number = 50

minLength

minLength: number = 1

pattern

pattern: RegExp = /^v?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:[1-9]\d*|\d*[-A-Za-z][-A-Za-z\d]*)(?:\.(?:[1-9]\d*|\d*[-A-Za-z][-A-Za-z\d]*))*)?(?:\+[-A-Za-z\d]+(?:\.[-A-Za-z\d]+)*)?$/

validInput

validInput: string = "a valid semantic version, http://semver.org"

Generated using TypeDoc