MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / is_url

Function is_url

packages/server/src/camera.rs:370–372  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

368}
369
370fn is_url(value: &str) -> bool {
371 value.starts_with("http://") || value.starts_with("https://") || value.starts_with("file://")
372}
373
374fn is_video_source(value: &str) -> bool {
375 if is_url(value) {

Callers 2

normalize_sourceFunction · 0.85
is_video_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected