Skip to main content

has_scheme

Function has_scheme 

Source
pub fn has_scheme(v: &str) -> bool
Expand description

値がスキーム付き(data: mailto: https: など)か。

最初の / より前に : があるかで判定する。 a/b:c は真ではない(:/ の後ろなので、ただのパス)。