fix: tag regexp (#253)

This commit is contained in:
boojack
2022-10-02 23:12:06 +08:00
committed by GitHub
parent 51fb8ddb07
commit 222c792539
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/labstack/echo/v4"
)
var tagRegexp = regexp.MustCompile(`#([^\s#]+?) `)
var tagRegexp = regexp.MustCompile(`[^\s]?#([^\s#]+?) `)
func (s *Server) registerTagRoutes(g *echo.Group) {
g.GET("/tag", func(c echo.Context) error {