File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def deidentify(file_name, project_id):
9191 # are interpreted as phone numbers
9292
9393 regex = (r".([A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`"
94- "{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95- "[a-z0-9](?:[a-z0-9-]*[a-z0-9]))" )
94+ "{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95+ "[a-z0-9](?:[a-z0-9-]*[a-z0-9]))" )
9696
9797 updated_transcript = re .sub (regex , r" \1@\3" , transcript )
9898
@@ -108,13 +108,11 @@ def deidentify(file_name, project_id):
108108
109109 # Print out the results.
110110 print ('Final Result with sensitive content redacted: {}'
111- .format (dlp_response .item .value ))
111+ .format (dlp_response .item .value ))
112112 # [END dlp_deidentify_masking]
113113
114114
115115if __name__ == '__main__' :
116-
117-
118116 parser = argparse .ArgumentParser (
119117 description = __doc__ ,
120118 formatter_class = argparse .RawDescriptionHelpFormatter )
You can’t perform that action at this time.
0 commit comments