aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/import-export/parsers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared/import-export/parsers.ts')
-rw-r--r--packages/shared/import-export/parsers.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/shared/import-export/parsers.ts b/packages/shared/import-export/parsers.ts
index f4d3f862..5b8b01e8 100644
--- a/packages/shared/import-export/parsers.ts
+++ b/packages/shared/import-export/parsers.ts
@@ -55,7 +55,9 @@ function parseNetscapeBookmarkFile(textContent: string): ParsedBookmark[] {
while (current && current.length > 0) {
const h3 = current.find("> h3").first();
if (h3.length > 0) {
- path.unshift(h3.text());
+ const folderName = h3.text().trim();
+ // Use "Unnamed" for empty folder names
+ path.unshift(folderName || "Unnamed");
}
current = current.parent();
}