MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / ensure_git

Function ensure_git

Scripts/DedSec Market.py:341–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 text = re.sub(r"~~([^~]+)~~", r"\1", text)
340
341 cleaned_lines = []
342 previous_blank = False
343 for raw_line in text.splitlines():
344 line = html_lib.unescape(raw_line).replace("\xa0", " ").strip()
345 if not line:
346 if not previous_blank:
347 cleaned_lines.append("")
348 previous_blank = True
349 continue
350 if line in {"---", "***", "___"}:
351 continue
352 if re.match(r"^\|?\s*[-: ]+\|[-|: ]*$", line):

Callers 1

clone_repo_to_tempFunction · 0.70

Calls 3

MarketErrorClass · 0.70
trFunction · 0.70
run_commandFunction · 0.70

Tested by

no test coverage detected