Skip to content

Commit eb9b244

Browse files
haowu77claude
andcommitted
Disable high false-positive regex rules by default
Disable IP_ADDRESS (matches version numbers), UUID, MAC_ADDRESS, IPV6, QQ_NUMBER (matches any digit sequence), URL_AUTH_TOKEN, MRZ_LINE1/LINE2 (matches uppercase text). These rules remain in config.json with enabled:false — users can re-enable via custom config. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent adbe1f3 commit eb9b244

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

mask_engine/data/config.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"description": "Birthday date (YYYY-MM-DD etc)"
2222
},
2323
"IP_ADDRESS": {
24-
"enabled": true,
24+
"enabled": false,
2525
"pattern": "(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)",
2626
"description": "IPv4 address"
2727
},
@@ -46,12 +46,12 @@
4646
"description": "Date with month name (EN/FR, 2-4 digit year, e.g. 19DEC1996, 23 APR/AVR 87)"
4747
},
4848
"MRZ_LINE1": {
49-
"enabled": true,
49+
"enabled": false,
5050
"pattern": "P[<«.O0][A-Z]{3}[A-Z<«.]{5,}",
5151
"description": "Passport MRZ line 1 (ICAO standard)"
5252
},
5353
"MRZ_LINE2": {
54-
"enabled": true,
54+
"enabled": false,
5555
"pattern": "(?=[A-Z0-9<«]*[<«])[A-Z0-9<«]{30,}",
5656
"description": "Passport MRZ line 2 (30+ chars with MRZ chevron separators)"
5757
},
@@ -76,12 +76,12 @@
7676
"description": "Chinese date format (YYYY年MM月DD日)"
7777
},
7878
"URL_AUTH_TOKEN": {
79-
"enabled": true,
79+
"enabled": false,
8080
"pattern": "https?://[^\\s]*[?&](?:token|access_token|auth|session|jwt|key|secret|code|password)=[^\\s&]{8,}",
8181
"description": "URL with authentication token parameter"
8282
},
8383
"QQ_NUMBER": {
84-
"enabled": true,
84+
"enabled": false,
8585
"pattern": "(?:QQ|qq)[:\\s:]*\\d{5,12}",
8686
"description": "QQ number"
8787
},
@@ -116,17 +116,17 @@
116116
"description": "SSH public key"
117117
},
118118
"MAC_ADDRESS": {
119-
"enabled": true,
119+
"enabled": false,
120120
"pattern": "(?:[0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}",
121121
"description": "MAC address"
122122
},
123123
"UUID": {
124-
"enabled": true,
124+
"enabled": false,
125125
"pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
126126
"description": "UUID"
127127
},
128128
"IPV6": {
129-
"enabled": true,
129+
"enabled": false,
130130
"pattern": "(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}",
131131
"description": "IPv6 address"
132132
},

0 commit comments

Comments
 (0)