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

Function run_command

Scripts/DedSec Market.py:330–338  ·  view source on GitHub ↗
(command, cwd=None)

Source from the content-addressed store, hash-verified

328 text = re.sub(r"~~~[^\n]*\n(.*?)~~~", lambda m: "\n" + m.group(1).strip() + "\n", text, flags=re.DOTALL)
329 text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL)
330 text = re.sub(r"<style.*?>.*?</style>", "", text, flags=re.DOTALL | re.IGNORECASE)
331 text = re.sub(r"<script.*?>.*?</script>", "", text, flags=re.DOTALL | re.IGNORECASE)
332 text = re.sub(r"!\[[^\]]*\]\([^)]*\)", "", text)
333 text = re.sub(r"\[([^\]]+)\]\([^)]*\)", r"\1", text)
334 if "<" in text and ">" in text:
335 text = html_to_text(text)
336 text = re.sub(r"`([^`]+)`", r"\1", text)
337 text = re.sub(r"\*\*([^*]+)\*\*", r"\1", text)
338 text = re.sub(r"__([^_]+)__", r"\1", text)
339 text = re.sub(r"~~([^~]+)~~", r"\1", text)
340
341 cleaned_lines = []

Callers 2

ensure_gitFunction · 0.70
clone_repo_to_tempFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected