MCPcopy
hub / github.com/github/spec-kit / _replacer

Function _replacer

src/specify_cli/workflows/expressions.py:476–478  ·  view source on GitHub ↗
(m: re.Match[str])

Source from the content-addressed store, hash-verified

474
475 # Multi-expression: string interpolation
476 def _replacer(m: re.Match[str]) -> str:
477 val = _evaluate_simple_expression(m.group(1).strip(), namespace)
478 return str(val) if val is not None else ""
479
480 return _EXPR_PATTERN.sub(_replacer, template)
481

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected