export function toSpaceIdentifier ( value = '' ) { return value . toLowerCase ( ) . replace ( /[^a-z0-9_]/g , '-' ) ; } export function isValidSpaceIdentifier ( value = '' ) { return value === toSpaceIdentifier ( value ) ; }