diff --git a/pkg/serverconfigs/shared/url_pattern_test.go b/pkg/serverconfigs/shared/url_pattern_test.go index c1f419e..ce66a42 100644 --- a/pkg/serverconfigs/shared/url_pattern_test.go +++ b/pkg/serverconfigs/shared/url_pattern_test.go @@ -76,6 +76,18 @@ func TestURLPattern_Match(t *testing.T) { url: "/hidden/index.html", result: false, // because don't have https://HOST in url }, + { + patternType: "wildcard", + pattern: "*.jpg", + url: "https://example.com/index.jpg", + result: true, + }, + { + patternType: "wildcard", + pattern: "*.jpg", + url: "https://example.com/index.js", + result: false, + }, { patternType: "regexp", pattern: ".*",