mirror of
https://github.com/usememos/memos.git
synced 2024-12-20 01:31:29 +03:00
chore: update tag regexp
This commit is contained in:
parent
57f51d1c58
commit
64332c3e6a
@ -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)
|
||||
}
|
||||
|
@ -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 regex
|
||||
export const IMAGE_URL_REG = /!\[.*?\]\((.+?)\)/g;
|
||||
|
Loading…
Reference in New Issue
Block a user