Skip to content

Commit

Permalink
Reverse tests to take allowlist rule as regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth committed Feb 16, 2024
1 parent 9670fd0 commit af0b26b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,21 +152,21 @@
"isAllowlisted": true
},
{
"description": "should match a wildcard rule with *",
"description": "* alone does not match wildcard",
"site": "https://testsite.com",
"request": "https://allowlist-tracker-2.com/anything/wildcard.js",
"isAllowlisted": true
"isAllowlisted": false
},
{
"description": "wildcard is not regex",
"description": "* works as a regex operator",
"site": "https://testsite.com",
"request": "https://allowlist-tracker-2.com/anything/wildcard2.js",
"isAllowlisted": false
"request": "https://allowlist-tracker-2.com/////wildcard.js",
"isAllowlisted": true
},
{
"description": ". is treated as a literal",
"description": "Regex .* is treated as a wildcard",
"site": "https://testsite.com",
"request": "https://allowlist-tracker-2.com/.23rdsvs/wildcard2.js",
"request": "https://allowlist-tracker-2.com/anything/wildcard2.js",
"isAllowlisted": true
}
]

0 comments on commit af0b26b

Please sign in to comment.