MCPcopy Create free account
hub / github.com/OWASP/APTS / is_external_target

Function is_external_target

scripts/check_internal_markdown_links.py:40–43  ·  view source on GitHub ↗
(target: str)

Source from the content-addressed store, hash-verified

38
39
40def is_external_target(target: str) -> bool:
41 lowered = target.lower()
42 parsed = urlparse(target)
43 return lowered.startswith(EXTERNAL_SCHEMES) or bool(parsed.scheme)
44
45
46def resolve_local_target(source_file: Path, target: str) -> Path | None:

Callers 1

resolve_local_targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected