fix: tag regexp (#173)

pull/174/head
boojack 3 years ago committed by GitHub
parent ca1170583e
commit cdbd934c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}

Loading…
Cancel
Save