mirror of
https://github.com/docmost/docmost.git
synced 2026-05-14 20:54:07 +08:00
fix: enhance page import (#1570)
* change import process * fix processor * fix page name in notion import * preserve confluence table bg color * sync
This commit is contained in:
@@ -64,3 +64,9 @@ export async function collectMarkdownAndHtmlFiles(
|
||||
await walk(dir);
|
||||
return results;
|
||||
}
|
||||
|
||||
export function stripNotionID(fileName: string): string {
|
||||
// Handle optional separator (space or dash) + 32 alphanumeric chars at end
|
||||
const notionIdPattern = /[ -]?[a-z0-9]{32}$/i;
|
||||
return fileName.replace(notionIdPattern, '').trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user