The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(path): properly path encode &

+8 -2
+2 -1
quartz/util/path.test.ts
··· 106 106 ["test.mp4", "test.mp4"], 107 107 ["note with spaces.md", "note-with-spaces"], 108 108 ["notes.with.dots.md", "notes.with.dots"], 109 - ["test/special chars?.md", "test/special-chars-q"], 109 + ["test/special chars?.md", "test/special-chars"], 110 110 ["test/special chars #3.md", "test/special-chars-3"], 111 + ["cool/what about r&d?.md", "cool/what-about-r-and-d"], 111 112 ], 112 113 path.slugifyFilePath, 113 114 path.isFilePath,
+6 -1
quartz/util/path.ts
··· 51 51 return s 52 52 .split("/") 53 53 .map((segment) => 54 - segment.replace(/\s/g, "-").replace(/%/g, "-percent").replace(/\?/g, "-q").replace(/#/g, ""), 54 + segment 55 + .replace(/\s/g, "-") 56 + .replace(/&/g, "-and-") 57 + .replace(/%/g, "-percent") 58 + .replace(/\?/g, "") 59 + .replace(/#/g, ""), 55 60 ) 56 61 .join("/") // always use / as sep 57 62 .replace(/\/$/, "")