MCPcopy Create free account
hub / github.com/emwalker/digraph / valid_path_spec

Method valid_path_spec

backend/src/git/search.rs:43–48  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

41
42impl SearchTopicSpec {
43 fn valid_path_spec(input: &str) -> bool {
44 lazy_static! {
45 static ref IS_ID_SPEC: Regex = Regex::new(ID_PATTERN).unwrap();
46 }
47 IS_ID_SPEC.is_match(input)
48 }
49
50 fn parse(input: &str) -> Result<Self> {
51 use std::str::FromStr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected