MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _replace

Function _replace

src/services/browser_captcha_personal.py:1195–1205  ·  view source on GitHub ↗
(match: re.Match[str])

Source from the content-addressed store, hash-verified

1193 seen: set[str] = set()
1194
1195 for raw_item in str(proxy_server or "").split(";"):
1196 item = str(raw_item or "").strip()
1197 if not item:
1198 continue
1199 if "=" in item:
1200 _, item = item.split("=", 1)
1201 item = item.strip()
1202 if not item:
1203 continue
1204 normalized = item if re.match(r"^[a-z]+://", item, re.I) else f"http://{item}"
1205 lowered = normalized.lower()
1206 if lowered in seen:
1207 continue
1208 seen.add(lowered)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected