Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update tag regexp
Steven64332c3e6a6c
diff --git a/server/tag.go b/server/tag.goindex 19c123daf..f8ac6e0d4 100644--- a/server/tag.go+++ b/server/tag.go@@ -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)}diff --git a/web/src/helpers/consts.ts b/web/src/helpers/consts.tsindex 2af38a037..c72be8199 100644--- a/web/src/helpers/consts.ts+++ b/web/src/helpers/consts.ts@@ -11,7 +11,7 @@ export const TOAST_ANIMATION_DURATION = 400;export const DAILY_TIMESTAMP = 3600 * 24 * 1000;// tag regex-export const TAG_REG = /#(\S+?) /g;+export const TAG_REG = /#([^\s#]+?) /g;// markdown image regexexport const IMAGE_URL_REG = /!\[.*?\]\((.+?)\)/g;