lua-resty-radixtree
lua-resty-radixtree copied to clipboard
Can support begin xxx*.xxx.com?
my route host is engine*.cacazhu.com , Can support begin xxx*.xxx.com?
if you want to use the regex, you can take a look at this way:
local radix = require("resty.radixtree")
local rx = radix.new({
{
paths = {"/bb*"},
vars = {
{"host", "~~", "xxx\\w+.xxx.com"}
}
}
})
Maybe we could add this tip to our docs? @membphis @kongjun01
Maybe we could add this tip to our docs? @membphis @kongjun01
@kongjun01 would you like to submit a PR?
My pleasure.