mirror of https://github.com/usememos/memos.git
fix: tag regex
This commit is contained in:
parent
b96d78ed19
commit
f9cb6cc339
|
|
@ -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 = /(?<!&)#(.+?) /g;
|
||||
|
||||
// URL regex
|
||||
export const LINK_REG = /(https?:\/\/[^\s<\\*>']+)/g;
|
||||
|
|
|
|||
Loading…
Reference in New Issue