export function ensureValidParameterName ( parameterName ) { if ( ! parameterName ) { throw new Error ( 'undefined parameter name' ) ; } if ( ! parameterName . match ( /^[0-9a-zA-Z]+$/ ) ) { throw new Error ( `parameter name must be alphanumeric but it was "${ parameterName }"` ) ; } }