chore: update tag regexp

This commit is contained in:
Steven
2022-08-25 23:58:03 +08:00
parent 57f51d1c58
commit 64332c3e6a
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
tagMapSet := make(map[string]bool)
r := regexp.MustCompile(`#([^\s]+?) `)
r := regexp.MustCompile(`#([^\s#]+?) `)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to compile regexp").SetInternal(err)
}