MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / read_regex

Method read_regex

src/dotenv/parser.py:97–102  ·  view source on GitHub ↗
(self, regex: Pattern[str])

Source from the content-addressed store, hash-verified

95 return result
96
97 def read_regex(self, regex: Pattern[str]) -> Sequence[str]:
98 match = regex.match(self.string, self.position.chars)
99 if match is None:
100 raise Error("read_regex: Pattern not found")
101 self.position.advance(self.string[match.start() : match.end()])
102 return match.groups()
103
104
105def decode_escapes(regex: Pattern[str], string: str) -> str:

Callers 4

parse_keyFunction · 0.80
parse_unquoted_valueFunction · 0.80
parse_valueFunction · 0.80
parse_bindingFunction · 0.80

Calls 3

ErrorClass · 0.85
advanceMethod · 0.80
startMethod · 0.80

Tested by

no test coverage detected