Skip to content

Commit

Permalink
fix: Fix broken links for titles with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
mklan committed Apr 28, 2024
1 parent e88c4fd commit 1cffe8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"titleId": "01ee9aec91da0000",
"name": "nx-archive-browser",
"version": "0.1.2",
"version": "0.1.3",
"private": true,
"description": "",
"author": {
Expand All @@ -16,12 +16,12 @@
"devDependencies": {
"esbuild": "^0.17.19",
"nxjs-pack": "^0.0.32",
"nxjs-runtime": "^0.0.32"
"nxjs-runtime": "^0.0.44"
},
"dependencies": {
"kleur": "^4.1.5",
"linkedom": "^0.16.6",
"nxjs-constants": "^0.0.27",
"sisteransi": "^1.0.5"
}
}
}
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const screen = createScreen(80, 43);

const header = screen.spread3({
left: { text: "", color: white },
center: { text: "nx-archive-browser v0.1.2", color: yellow },
center: { text: "nx-archive-browser v0.1.3", color: yellow },
right: { text: "+ Exit ", color: white },
});

Expand Down Expand Up @@ -113,7 +113,7 @@ async function main() {
currentMenu = mainMenu!;
}
if (key === "Y") {
localStorage && localStorage.clear();
localStorage.clear();
notification.show(2000, "cache cleared!");
}
if (key === "X") {
Expand Down Expand Up @@ -191,10 +191,10 @@ async function enterCollection(collection: Collection, onExit: () => void) {

const titles = entries.map((entry) => ({
meta: {
fileName: entry.fileName,
fileName: entry.title,
collection,
},
marked: localFiles.includes(entry.fileName),
marked: localFiles.includes(entry.title),
title: entry.title.slice(0, 79),
}));

Expand Down

0 comments on commit 1cffe8a

Please sign in to comment.