mirror of
https://github.com/usememos/memos.git
synced 2025-11-11 18:00:53 +08:00
23 lines
566 B
TypeScript
23 lines
566 B
TypeScript
// UNKNOWN_ID is the symbol for unknown id
|
|
export const UNKNOWN_ID = -1;
|
|
|
|
// default animation duration
|
|
export const ANIMATION_DURATION = 200;
|
|
|
|
// toast animation duration
|
|
export const TOAST_ANIMATION_DURATION = 400;
|
|
|
|
// millisecond in a day
|
|
export const DAILY_TIMESTAMP = 3600 * 24 * 1000;
|
|
|
|
// tag regex
|
|
export const TAG_REG = /#(.+?) /g;
|
|
|
|
// markdown image regex
|
|
export const IMAGE_URL_REG = /!\[.*?\]\((.+?)\)/g;
|
|
|
|
// markdown link regex
|
|
export const LINK_URL_REG = /\[(.*?)\]\((.+?)\)/g;
|
|
|
|
// linked memo regex
|
|
export const MEMO_LINK_REG = /@\[(.+?)\]\((.+?)\)/g;
|