mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 22:36:16 +08:00
fix: tag regexp (#173)
This commit is contained in:
parent
ca1170583e
commit
cdbd934c4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue