MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_valid_url

Method is_valid_url

atomic-repository/src/remote.rs:218–220  ·  view source on GitHub ↗

Check if the URL appears valid. This performs basic validation that the URL has a scheme.

(&self)

Source from the content-addressed store, hash-verified

216 ///
217 /// This performs basic validation that the URL has a scheme.
218 pub fn is_valid_url(&self) -> bool {
219 self.url.contains("://")
220 }
221}
222
223impl fmt::Display for RemoteEntry {

Callers 1

addMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected