You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/yaml-timestamp.test.ts
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -551,5 +551,28 @@ ruleTest({
551
551
dateModifiedSourceOfTruth: 'user or Linter edits',
552
552
},
553
553
},
554
+
{// accounts for https://github.com/platers/obsidian-linter/issues/1411
555
+
testName: 'When the format for the file has escaped characters, if it matches the original format and the source of truth is not filesystem, then it should not update the date modified',
556
+
before: dedent`
557
+
---
558
+
modified_on: "[[2025-10-11]]"
559
+
---
560
+
`,
561
+
after: dedent`
562
+
---
563
+
modified_on: "[[2025-10-11]]"
564
+
---
565
+
`,
566
+
options: {
567
+
dateCreated: false,
568
+
format: '"[[[]YYYY-MM-DD[]]]"',
569
+
dateModifiedKey: 'modified_on',
570
+
fileCreatedTime: '2020-01-01T00:00:00-00:00',
571
+
fileModifiedTime: '2020-02-05T18:00:00-00:00',
572
+
currentTime: moment('Tuesday, February 5th 2026, 6:00:07 pm','dddd, MMMM Do YYYY, h:mm:ss a'),
573
+
alreadyModified: false,
574
+
dateModifiedSourceOfTruth: 'user or Linter edits',
0 commit comments