MCPcopy Create free account
hub / github.com/SpecterOps/DeepPass2 / remove_np_result

Function remove_np_result

deeppass2.py:111–118  ·  view source on GitHub ↗

Removes all noseyparker regex matched patterns from the document.

(doc, matches, replacement="")

Source from the content-addressed store, hash-verified

109
110
111def remove_np_result(doc, matches, replacement=""):
112 """Removes all noseyparker regex matched patterns from the document."""
113
114 for match in matches:
115 for matc in match:
116 pattern = re.escape(matc["match"])
117 doc = re.sub(pattern, replacement, doc)
118 return doc
119
120def get_prompt(text, passwords):
121 """Prompt for the LLM"""

Callers 1

get_nosey_parker_resultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected