Skip to main content

normalize_contract_id

Function normalize_contract_id 

Source
pub fn normalize_contract_id(id: &str) -> &str
Expand description

Normalize a contract identifier by stripping .yaml/.yml extension.

Both binding entries (contract: foo-v1.yaml) and file stems (foo-v1) are normalized to the bare stem so comparisons work regardless of whether the caller used a filename or stem.