Skip to main content

parse_spec_set_id

Function parse_spec_set_id 

Source
pub fn parse_spec_set_id(s: &str) -> Result<String, Error>
Expand description

Validate and normalize a spec set identifier (a spec name in the default repository).

Trims whitespace and rejects empty input, embedded whitespace, and the version sigils ~ / ^ (which once denoted revisions and are now reserved). Evaluation entry points use the default repository, so temporal or version sigils on the spec set name are not accepted here.