Skip to content

Commit

Permalink
* remove file extension validation
Browse files Browse the repository at this point in the history
  • Loading branch information
asofter committed Aug 12, 2023
1 parent bd7091a commit 986d398
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion llm_guard/input_scanners/anonymize.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"US_BANK_NUMBER",
"CREDIT_CARD_RE",
"UUID",
"FILE_EXTENSION",
"ARTIFACTORY_KEY",
"AWS_KEY",
"AZURE_STORAGE_KEY",
Expand Down
11 changes: 0 additions & 11 deletions llm_guard/resources/sensisitive_patterns.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@
"context": [],
"score": 0.5
},
{
"expressions": [
"\\.\\b(?:txt|pdf|docx?|xlsx?|pptx?|png|jpe?g|gif|mp4|avi|mp3|wav|zip|tar|gz|7z)\\b"
],
"name": "FILE_EXTENSION",
"examples": [
".txt"
],
"context": [],
"score": 0.5
},
{
"expressions": [
"(?:\\s|=|:|\"|^)AKC[a-zA-Z0-9]{10,}(?:\\s|\"|$)",
Expand Down

0 comments on commit 986d398

Please sign in to comment.