Skip to main content

is_data_url

Function is_data_url 

Source
pub fn is_data_url(specifier: &str) -> bool
Expand description

Whether the module specifier is a data: URL, whose code runs where it is written, so no one reads it elsewhere. As the URL parser reads it, leading control characters and spaces and any tab or newline are dropped, and the scheme has no case.