mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
fix(common): strmatcher match domain safety
This commit is contained in:
parent
cd1d000860
commit
fce86aad33
2 changed files with 9 additions and 2 deletions
|
@ -217,6 +217,10 @@ func TestACAutomaton(t *testing.T) {
|
|||
pattern: "vvgoogle.com",
|
||||
res: true,
|
||||
},
|
||||
{
|
||||
pattern: "½",
|
||||
res: false,
|
||||
},
|
||||
}
|
||||
for _, test := range cases2Output {
|
||||
if m := ac.Match(test.pattern); m != test.res {
|
||||
|
@ -224,7 +228,6 @@ func TestACAutomaton(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
cases3Input := []struct {
|
||||
pattern string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue