optimize rewrite regex (#801)

This commit is contained in:
澄潭
2024-01-25 10:20:49 +08:00
committed by GitHub
parent 90f89cf588
commit 073c10df77
2 changed files with 10 additions and 1 deletions

View File

@@ -67,6 +67,15 @@ func TestNeedRegexMatch(t *testing.T) {
inputPath: "/.*",
expect: true,
},
{
input: &Ingress{
Rewrite: &RewriteConfig{
UseRegex: false,
},
},
inputPath: "/.",
expect: false,
},
{
input: &Ingress{
Rewrite: &RewriteConfig{