MCPcopy Create free account
hub / github.com/ddnet/ddnet / parse_config_variables

Function parse_config_variables

scripts/check_config_variables.py:12–19  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

10
11
12def parse_config_variables(lines):
13 pattern = r"^MACRO_CONFIG_[A-Z]+\((.*?), (.*?),.*"
14 matches = {}
15 for line in lines:
16 match = re.match(pattern, line)
17 if match:
18 matches[match.group(1)] = match.group(2)
19 return matches
20
21
22def generate_regex(variable_code):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected