aboutsummaryrefslogtreecommitdiff
path: root/stdout_filterer.py
diff options
context:
space:
mode:
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()