export function capitalizeFirstLetter ( input ) { return input . charAt ( 0 ) . toUpperCase ( ) + input . slice ( 1 ) ; } export function semver ( ) { return /\bv?(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?\b/ig ; }