file copyright author Vivek M. Chawla <@VivekMChawla>
 *  summary description version license import * as core from './core-validator' ; function param { string } userInput returns { boolean | string } description public export function gitRemoteUri ( userInput ) { const acceptedProtocols = /^(http(s)?)/ ; return ( core . validateGitRemoteUri ( userInput , acceptedProtocols ) || 'Please provide a valid URI (http/https only) for your Git remote' ) ; } function param { string } userInput returns { boolean | string } description public export function targetPath ( userInput ) { return ( core . validateLocalPath ( userInput ) || 'Target Directory can not begin with ~, have unescaped spaces, or contain invalid characters (\' \" ` ; & * |)' ) ; } function param { string } userInput returns { boolean | string } description public export function projectName ( userInput ) { const minLength = 1 ; const maxLength = 50 ; return ( core . validateStandardName ( userInput . trim ( ) , maxLength ) || `Names must be alphanumeric strings with ${ minLength }-${ maxLength } characters` ) ; } function param { string } userInput returns { boolean | string } description public export function standardAlias ( userInput ) { const minLength = 1 ; const maxLength = 50 ; return ( core . validateStandardAlias ( userInput , maxLength ) || `Alias must be ${ minLength }-${ maxLength } chars long and include only ` + `letters (a-Z), numbers (0-9), dash (-), and underscore (_)` ) ; } function param { string } userInput returns { boolean | string } description public export function standardName ( userInput ) { const minLength = 1 ; const maxLength = 50 ; return ( core . validateStandardName ( userInput . trim ( ) , maxLength ) || `Names must be alphanumeric strings with ${ minLength }-${ maxLength } characters` ) ; }