Skip to content

Commit

Permalink
fixed some definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4f53 committed Nov 14, 2023
1 parent 6aaae70 commit 581388f
Showing 1 changed file with 43 additions and 36 deletions.
79 changes: 43 additions & 36 deletions definitions.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Email":{
"Email": {
"regex":"[A-Za-z0-9._+\\-\\']+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}",
"region":null,
"keywords":null
},
"Phone Number":{
"Phone Number": {
"regex":"((\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]\\d{3}[\\s.-]\\d{4}|[0-9]{10}|\\+{1}[0-9 ]{11,15}|[0-9]{4} [0-9]{6})",
"region":null,
"keywords":[
Expand All @@ -30,7 +30,7 @@
"regex": ["\\b(?:\\d{4}[ -]?){3}(?=\\d{4}\\b)(?:\\d{4})"],
"region": null
},
"Aadhaar Card":{
"Aadhaar Card": {
"regex":"([0-9]{4} [0-9]{4} [0-9]{4}|[0-9]{4}-[0-9]{4}-[0-9]{4}|[0-9]{12})",
"region":"India",
"keywords":[
Expand All @@ -49,7 +49,7 @@
"regex": "[A-Z]{5}?[0-9]{4}[A-Z]",
"region": "India"
},
"Election Photo ID Card":{
"Election Photo ID Card": {
"regex":"[A-Za-z]{3}[0-9]{7}",
"region":"India",
"keywords":[
Expand All @@ -61,7 +61,7 @@
"Constituency"
]
},
"Social Security Number":{
"Social Security Number": {
"regex":"[0-9]{3}-[0-9]{2}-[0-9]{3,4}",
"region":"United States",
"keywords":[
Expand All @@ -71,7 +71,7 @@
"Security"
]
},
"Social Insurance Number":{
"Social Insurance Number": {
"regex":"([0-9]{3}-[0-9]{3}-[0-9]{3}|[0-9]{3} [0-9]{3} [0-9]{3})",
"region":"Canada",
"keywords":[
Expand All @@ -83,7 +83,7 @@
"Canada"
]
},
"Permanent Resident Card":{
"Permanent Resident Card": {
"regex":"^([0-9]{4}-[0-9]{4})$",
"region":"Canada",
"keywords":[
Expand All @@ -95,7 +95,7 @@
"Canada"
]
},
"Permanent Identity Card":{
"Permanent Identity Card": {
"regex":"^([0-9]{4}-[0-9]{4})$",
"region":"Hong Kong",
"keywords":[
Expand All @@ -105,7 +105,7 @@
"Hong Kong"
]
},
"Resident ID Card":{
"Resident ID Card": {
"regex":"[0-9]{6}20[0-9]{2}[0-1][0-9][0-3][0-9][0-9]{3}[0-9]{1,2}",
"region":"China",
"keywords":[
Expand All @@ -123,7 +123,7 @@
"<<<<"
]
},
"Indian Passport":{
"Indian Passport": {
"regex":"(?:P<IND)(?:[A-Z0-9<].+)",
"region":"India",
"keywords":[
Expand All @@ -132,7 +132,7 @@
"<<<<"
]
},
"United States Passport":{
"United States Passport": {
"regex":"(?:P<USA)(?:[A-Z0-9<].+)",
"region":"United States",
"keywords":[
Expand All @@ -141,7 +141,7 @@
"<<<<"
]
},
"Nebraska Driver's License":{
"Nebraska Driver's License": {
"regex":"[A-Z]{1}[0-9]{9,11}",
"region":"United States",
"keywords":[
Expand All @@ -161,7 +161,7 @@
"Class"
]
},
"Maharashtra Driver's License":{
"Maharashtra Driver's License": {
"regex":"[A-Z]{2}[0-9]{2} [0-9]{12}",
"region":"India",
"keywords":[
Expand All @@ -172,7 +172,7 @@
"Motor"
]
},
"Goa Driver's License":{
"Goa Driver's License": {
"regex":"GA[0-9]{2} \\d{11}",
"region":"India",
"keywords":[
Expand All @@ -183,7 +183,7 @@
"Motor"
]
},
"Karnataka Driver's License":{
"Karnataka Driver's License": {
"regex":"GA[0-9]{2} \\d{11}",
"region":"India",
"keywords":[
Expand All @@ -194,12 +194,12 @@
"Motor"
]
},
"UUID4":{
"UUID4": {
"regex":"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}",
"region":null,
"keywords":null
},
"Professional Resume":{
"Professional Resume": {
"regex":null,
"region":null,
"keywords":[
Expand All @@ -211,7 +211,7 @@
"Work"
]
},
"Ukraine ID Card":{
"Ukraine ID Card": {
"regex":"(?:IDUKR)(?:[A-Z0-9<].+)",
"region":"Ukraine",
"keywords":[
Expand All @@ -222,7 +222,7 @@
"<<"
]
},
"Ukrainian Passport":{
"Ukrainian Passport": {
"regex":"(?:P<UKR)(?:[A-Z0-9<].+)",
"region":"Ukraine",
"keywords":[
Expand All @@ -233,7 +233,7 @@
"<<"
]
},
"Russian Passport":{
"Russian Passport": {
"regex":"(?:P<RUS)(?:[A-Z0-9<].+)",
"region":"Russia",
"keywords":[
Expand All @@ -244,14 +244,13 @@
"<<"
]
},
"Russia Driver's License":{
"Russia Driver's License": {
"regex":"^[0-9 ]{9,11}$",
"region":"Russia",
"keywords":[
"4a)",
"4b)",
"4c)",
"P<RUS",
"9.",
"TOBEP"
]
Expand All @@ -261,15 +260,18 @@
"region": "Singapore",
"keywords": [
"Identity Card No",
"Singapura"
"Singapura",
"Republic of Singapore"
]
},
"Singaporean Passport": {
"regex": "(?:PASGP.+?)<<(?:[A-Z0-9<].+)",
"regex": "(?:P<SGP|PASGP)<<(?:[A-Z0-9<].+)",
"region": "Sinagpore",
"keywords": [
"Singapore Citizen",
"PASGP"
"SGP",
"PA",
"Passport"
]
},
"South African Identity Card": {
Expand All @@ -288,23 +290,28 @@
"Republique"
]
},
"North Korean Passport": {
"regex": "^[0-9a-z]{8,}$",
"region": "North Korea",
"keywords": [
"For public affairs"
]
},
"South Korean Passport": {
"regex": "^[0-9a-z]{8,}$",
"regex": "(?:P<KOR|PPKOR)(?:[A-Z0-9<].+)",
"region": "South Korea",
"keywords": [
"Republic of Korea",
"Personal No"
"Korea",
"KOR",
"Passport",
"PM"
]
},
"North Korean Passport": {
"regex": "(?:P<PRK|PPPRK)(?:[A-Z0-9<].+)",
"region": "North Korea",
"keywords": [
"PRK",
"Pyongyang",
"Korea",
"Passport"
]
},
"Israeli Passport": {
"regex": "(?:P<ISR)(?:[A-Z0-9<].+)",
"regex": "(?:P<ISR|PMISR)(?:[A-Z0-9<].+)",
"region": "Israel",
"keywords": [
"Israel",
Expand Down

0 comments on commit 581388f

Please sign in to comment.