Unverified Commit cdbd934c authored by boojack's avatar boojack Committed by GitHub

fix: tag regexp (#173)

parent ca117058
......@@ -47,7 +47,7 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
tagMapSet := make(map[string]bool)
r := regexp.MustCompile("#(.+?) ")
r := regexp.MustCompile(`#([^\s]+?) `)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to compile regexp").SetInternal(err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment