MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / tag_body

Function tag_body

src/sessions/codex.rs:674–680  ·  view source on GitHub ↗
(text: &'a str, tag: &str)

Source from the content-addressed store, hash-verified

672}
673
674fn tag_body<'a>(text: &'a str, tag: &str) -> Option<&'a str> {
675 let start_tag = format!("<{tag}>");
676 let end_tag = format!("</{tag}>");
677 let after_start = text.split_once(&start_tag)?.1;
678 let body = after_start.split_once(&end_tag)?.0;
679 Some(body)
680}
681
682fn budget_line_value<'a>(text: &'a str, prefix: &str) -> Option<&'a str> {
683 text.lines()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected