aboutsummaryrefslogtreecommitdiff
path: root/stdout_filterer.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-14 04:39:41 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-14 04:39:41 -0600
commit704b6407b4e51800376e73fe934a762e94b30d9d (patch)
treef51b5c0bd74abd7b836746f3f2222d282bbd541e /stdout_filterer.py
parentd433b974d9f15f9a7ab57ba592a4858e7977726d (diff)
rebased
Diffstat (limited to 'stdout_filterer.py')
-rw-r--r--stdout_filterer.py6
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()