From 704b6407b4e51800376e73fe934a762e94b30d9d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 14 Oct 2023 04:39:41 -0600 Subject: rebased --- stdout_filterer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdout_filterer.py') 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() -- cgit v1.2.3