Skip to content

Commit

Permalink
fix: no longer .ext comparison
Browse files Browse the repository at this point in the history
not sure when this changed?
  • Loading branch information
russmatney committed Jan 5, 2025
1 parent ab0d4fb commit b3d9594
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/org_crud/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
(fs/list-dir f)
[f])))
(apply concat)
(filter #(contains? #{".org"} (fs/extension %)))
(filter #(contains? #{"org"} (fs/extension %)))
(map (partial path->nested-item opts))
(remove nil?))))

Expand Down
2 changes: 1 addition & 1 deletion src/org_crud/counts.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
(fs/list-dir f)
[f])))
(remove fs/directory?)
(filter (comp #{".org"} fs/extension)))))
(filter (comp #{"org"} fs/extension)))))

(comment
(count (org-files)))
Expand Down
2 changes: 1 addition & 1 deletion src/org_crud/doctor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(fs/list-dir f)
[f])))
(remove fs/directory?)
(filter (comp #{".org"} fs/extension)))))
(filter (comp #{"org"} fs/extension)))))

(comment
(count (org-files)))
Expand Down
2 changes: 1 addition & 1 deletion test/org_crud/markdown_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
(let [files (fs/list-dir fixture-dir)]
(doall
(->> files
(filter #(= (fs/extension %) ".md"))
(filter #(= (fs/extension %) "md"))
(map fs/delete)))))

(defn parsed-org-file [fname]
Expand Down

0 comments on commit b3d9594

Please sign in to comment.