mirror of https://github.com/usememos/memos.git
fix: tag regexp (#173)
This commit is contained in:
parent
ca1170583e
commit
cdbd934c4e
|
|
@ -47,7 +47,7 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
|
||||||
|
|
||||||
tagMapSet := make(map[string]bool)
|
tagMapSet := make(map[string]bool)
|
||||||
|
|
||||||
r := regexp.MustCompile("#(.+?) ")
|
r := regexp.MustCompile(`#([^\s]+?) `)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to compile regexp").SetInternal(err)
|
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to compile regexp").SetInternal(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue