Skip to main content

validate_registered_label

Function validate_registered_label 

Source
pub fn validate_registered_label(label: &str) -> Result<(), String>
Expand description

Check that a label a registration names is usable as written.

The label is used verbatim, so it must already be what sanitize_label would produce, and <label>.<tld> (the project page) must fit the DNS limit. Returns a message saying what to change otherwise.