A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: fix DATE_TIME_STRIP_REGEX (#7325)
Ammar Ahmedc417d4df9138
diff --git a/packages/core/src/utils/title-format.ts b/packages/core/src/utils/title-format.tsindex 81045b902..ee4e45ef1 100644--- a/packages/core/src/utils/title-format.ts+++ b/packages/core/src/utils/title-format.ts@@ -27,7 +27,7 @@ const COUNT_REGEX = /\$count\$/g;const TIME_REGEX = /\$time\$/g;const HEADLINE_REGEX = /\$headline\$/g;const TIMESTAMP_REGEX = /\$timestamp\$/g;-const DATE_TIME_STRIP_REGEX = /[\\\-: ]/g;+const DATE_TIME_STRIP_REGEX = /[\\\-:./, ]/g;export function formatTitle(titleFormat: string,