Skip to main content

sanitize_os

Function sanitize_os 

Source
pub fn sanitize_os(raw: &str) -> Option<String>
Expand description

A peer’s value, or None if it isn’t a plain lowercase token. Anything else (empty, long, upper case, spaces, markup) is dropped, so the frontend never receives text it didn’t expect.