File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/naming-convention */
2- import { DAILY_NOTE_PAGE_TITLE_REGEX } from "roamjs-components/date/constants" ;
32import parseNlpDate from "roamjs-components/date/parseNlpDate" ;
43import getAllPageNames from "roamjs-components/queries/getAllPageNames" ;
54import normalizePageTitle from "roamjs-components/queries/normalizePageTitle" ;
@@ -63,30 +62,8 @@ export const getTitleDatalog = ({
6362 type : "data-pattern" ,
6463 arguments : [
6564 { type : "variable" , value : source } ,
66- { type : "constant" , value : ":node/title" } ,
67- { type : "variable" , value : `${ source } -Title` } ,
68- ] ,
69- } ,
70- {
71- type : "fn-expr" ,
72- fn : "re-pattern" ,
73- arguments : [
74- {
75- type : "constant" ,
76- value : `"${ DAILY_NOTE_PAGE_TITLE_REGEX . source } "` ,
77- } ,
78- ] ,
79- binding : {
80- type : "bind-scalar" ,
81- variable : { type : "variable" , value : `date-regex` } ,
82- } ,
83- } ,
84- {
85- type : "pred-expr" ,
86- pred : "re-find" ,
87- arguments : [
88- { type : "variable" , value : "date-regex" } ,
89- { type : "variable" , value : `${ source } -Title` } ,
65+ { type : "constant" , value : ":log/id" } ,
66+ { type : "variable" , value : `${ source } -log-id` } ,
9067 ] ,
9168 } ,
9269 ] ;
You can’t perform that action at this time.
0 commit comments