fix: tag regexp (#173)

This commit is contained in:
boojack 2022-08-25 19:24:21 +08:00 committed by GitHub
parent ca1170583e
commit cdbd934c4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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