Skip to content

Commit

Permalink
added new dummy pii
Browse files Browse the repository at this point in the history
  • Loading branch information
owais-redhunt committed Mar 30, 2023
1 parent 6107e22 commit 7c7a24f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
]
},
"Social Security Number":{
"regex":"^[0-9]{3}-[0-9]{2}-[0-9]{3,4}$",
"regex":"[0-9]{3}-[0-9]{2}-[0-9]{3,4}",
"region":"United States",
"keywords":[
"SSN",
Expand Down Expand Up @@ -202,7 +202,7 @@
]
},
"Ukraine ID Card":{
"regex":"^(?:IDUKR)(?:[A-Z0-9<].+)",
"regex":"(?:IDUKR)(?:[A-Z0-9<].+)",
"region":"Ukraine",
"keywords":[
"Ukraine",
Expand All @@ -213,7 +213,7 @@
]
},
"Ukrainian Passport":{
"regex":"^(?:P<UKR)(?:[A-Z0-9<].+)",
"regex":"(?:P<UKR)(?:[A-Z0-9<].+)",
"region":"Ukraine",
"keywords":[
"Ukraine",
Expand Down
Binary file modified dummy-pii/dummy-ssn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion octopii.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def search_pii(file_path):
country_of_origin = rules[pii_class]["region"]

identifiers = text_utils.id_card_numbers_pii(text, rules)
print(text)

if score < 5:
pii_class = None
Expand Down

0 comments on commit 7c7a24f

Please sign in to comment.