diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-14 04:39:41 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-14 04:39:41 -0600 |
commit | 704b6407b4e51800376e73fe934a762e94b30d9d (patch) | |
tree | f51b5c0bd74abd7b836746f3f2222d282bbd541e /stdout_filterer.py | |
parent | d433b974d9f15f9a7ab57ba592a4858e7977726d (diff) |
rebased
Diffstat (limited to 'stdout_filterer.py')
-rw-r--r-- | stdout_filterer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdout_filterer.py b/stdout_filterer.py index c4cf845..cb04b2d 100644 --- a/stdout_filterer.py +++ b/stdout_filterer.py @@ -7,9 +7,9 @@ class RedactPhoneNumbers: def write(self, text): # Regular expression to match phone numbers - phone_regex = r"(\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}" - redacted_text = re.sub(phone_regex, "****", text) - self.stream.write(redacted_text) + #phone_regex = r"(\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}" + #redacted_text = re.sub(phone_regex, "****", text) + self.stream.write(text) def flush(self): self.stream.flush() |