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

Method read_regex

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

Source from the content-addressed store, hash-verified

88 return result
89
90 def read_regex(self, regex: Pattern[str]) -> Sequence[str]:
91 match = regex.match(self.string, self.position.chars)
92 if match is None:
93 raise Error("read_regex: Pattern not found")
94 self.position.advance(self.string[match.start():match.end()])
95 return match.groups()
96
97
98def 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