From 50bb1ffd8aa00d85d3a17bc1a4e52d26187afa7e Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Wed, 31 Jan 2024 17:38:42 +0000
Subject: [PATCH] feat(usability): update functions for search (#774)
---
quartz/util/path.test.ts | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/quartz/util/path.test.ts b/quartz/util/path.test.ts
index 8bbb58d..6a8aa3d 100644
--- a/quartz/util/path.test.ts
+++ b/quartz/util/path.test.ts
@@ -83,7 +83,7 @@
test("simplifySlug", () => {
asserts(
[
- ["index", ""],
+ ["index", "/"],
["abc", "abc"],
["abc/index", "abc/"],
["abc/def", "abc/def"],
@@ -105,6 +105,9 @@
["index.md", "index"],
["test.mp4", "test.mp4"],
["note with spaces.md", "note-with-spaces"],
+ ["notes.with.dots.md", "notes.with.dots"],
+ ["test/special chars?.md", "test/special-chars-q"],
+ ["test/special chars #3.md", "test/special-chars-3"],
],
path.slugifyFilePath,
path.isFilePath,
--
Gitblit v1.10.0