Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeClash-ai/CodeClash
/ _header
Function
_header
codeclash/arenas/chess/replay.py:205–207 ·
view source on GitHub ↗
(pgn: str, key: str)
Source
from the content-addressed store, hash-verified
203
204
205
def
_header(pgn: str, key: str) -> str | None:
206
m = re.search(rf
'\[{key}\s+"([^"]*)"\]'
, pgn)
207
return
m.group(1)
if
m
else
None
208
209
210
DRAW_JS =
""
"
Callers
1
parse
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected