validate_formation_name

Function validate_formation_name 

Source
pub fn validate_formation_name(name: &str) -> Result<String, &'static str>
Expand description

Current Rules:

  • 1-30 alphanumeric (only ASCII lowercase) characters or hyphen (0-9, a-z, A-Z, and ‘-’ )
  • hyphens (‘-’) may not be repeated (i.e. ‘–’)
  • no more than three (3) total hyphens
  • no consecutive hyphens
  • no trailing hyphen