// find dates based on format [[YYYY-MM-DD]]
const findDated = (task) => {
if( !task.completed ) {
task.link = " " + "[[" + task.path + "|*]]";
task.date="";
const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/);
if(found) task.date = moment(found[1]);
return true;
}
LIST WHERE contains(file.folder, this.file.folder) AND file.name != this.file.name