MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / decode_match

Function decode_match

src/dotenv/parser.py:99–100  ·  view source on GitHub ↗
(match: Match[str])

Source from the content-addressed store, hash-verified

97
98def decode_escapes(regex: Pattern[str], string: str) -> str:
99 def decode_match(match: Match[str]) -> str:
100 return codecs.decode(match.group(0), 'unicode-escape') # type: ignore
101
102 return regex.sub(decode_match, string)
103

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected