Skip to content

Commit 3bf588d

Browse files
authored
Merge pull request #140 from takker99/fix-project-links
🐛 Faild to update pages which include `[/:project]` or `[/:project/]`
2 parents 8c723c0 + f0b49cd commit 3bf588d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

browser/websocket/makeChanges.ts

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ const findLinksAndImage = (
107107
}
108108
case "root": {
109109
const link = cutId(node.href);
110+
// ignore `/project` or `/project/`
111+
if (/^\/[\w\d-]+\/?$/.test(link)) return;
110112
if (projectLinksLc.has(toTitleLc(link))) return;
111113
projectLinksLc.add(toTitleLc(link));
112114
projectLinks.push(link);

0 commit comments

Comments
 (0)