Removes all noseyparker regex matched patterns from the document.
(doc, matches, replacement="")
| 109 | |
| 110 | |
| 111 | def 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 | |
| 120 | def get_prompt(text, passwords): |
| 121 | """Prompt for the LLM""" |
no outgoing calls
no test coverage detected