MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _norm

Function _norm

scripts/afml_docs_loop.py:113–114  ·  view source on GitHub ↗
(v: str)

Source from the content-addressed store, hash-verified

111
112def chapter_eq(left: str, right: str) -> bool:
113 def _norm(v: str) -> str:
114 return re.sub(r"\s+", " ", v.strip().upper())
115
116 return _norm(left) == _norm(right)
117

Callers 1

chapter_eqFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected