mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(core): add experimental flag for journal (#5578)
This commit is contained in:
@@ -11,6 +11,7 @@ type MaybeDate = Date | string | number;
|
||||
export const JOURNAL_DATE_FORMAT = 'YYYY-MM-DD';
|
||||
|
||||
function isPageJournal(pageMeta?: PageMeta) {
|
||||
if (!runtimeConfig.enableJournal) return false;
|
||||
return !!(pageMeta && pageMeta.title.match(/^\d{4}-\d{2}-\d{2}$/));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user