diff --git a/.gitignore b/.gitignore index d0609ca3..dbec0c72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .vscode -_authortools -/_examples/issue-*/ .directory -node_modules package-lock.json -go.sum \ No newline at end of file +go.sum +node_modules +/_examples/issue-*/ +/_examples/feature-*/ diff --git a/context/handler.go b/context/handler.go index 35c70867..00939234 100644 --- a/context/handler.go +++ b/context/handler.go @@ -175,7 +175,7 @@ func trimHandlerName(name string) string { name = strings.Replace(name, internalName, "iris", 1) } - if internalName := "github.com/iris-contrib/middleware"; strings.HasPrefix(name, internalName) { + if internalName := "github.com/iris-contrib"; strings.HasPrefix(name, internalName) { name = strings.Replace(name, internalName, "iris-contrib", 1) }