mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-16 14:50:25 +08:00
优化URL匹配方法
This commit is contained in:
@@ -43,6 +43,12 @@ func TestURLPattern_Match(t *testing.T) {
|
||||
url: "https://example.com",
|
||||
result: true,
|
||||
},
|
||||
{
|
||||
patternType: "wildcard",
|
||||
pattern: "*COM",
|
||||
url: "https://example.com/hello",
|
||||
result: false,
|
||||
},
|
||||
{
|
||||
patternType: "wildcard",
|
||||
pattern: "http://*",
|
||||
|
||||
Reference in New Issue
Block a user