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

Function cites

atomic-canonical/src/review_work.rs:131–133  ·  view source on GitHub ↗

Require whole evidence tokens. Do not match src/a.rs inside other/src/a.rs, or use arbitrary task-path overlap as a criterion verdict.

(text: &str, reference: &str)

Source from the content-addressed store, hash-verified

129// Require whole evidence tokens. Do not match src/a.rs inside other/src/a.rs,
130// or use arbitrary task-path overlap as a criterion verdict.
131fn cites(text: &str, reference: &str) -> bool {
132 citation(text, reference).is_some()
133}
134
135fn citation(text: &str, reference: &str) -> Option<Option<(u32, u32)>> {
136 text.split(|c: char| c.is_whitespace() || "`\"'()[],;".contains(c))

Callers 1

constructMethod · 0.85

Calls 1

citationFunction · 0.85

Tested by

no test coverage detected