Skip to content

Commit 5fb39f3

Browse files
committed
Only add .obf to filename if missing
1 parent 742bb1d commit 5fb39f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/processors/obfProcessor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,9 @@ class ObfProcessor extends BaseProcessor {
729729
const files = Object.values(tree.pages).map((page) => {
730730
const obfBoard = this.createObfBoardFromPage(page, 'Board', tree.metadata);
731731
const obfContent = JSON.stringify(obfBoard, null, 2);
732+
const name = page.id.endsWith('.obf') ? page.id : `${page.id}.obf`;
732733
return {
733-
name: `${page.id}.obf`,
734+
name,
734735
data: new TextEncoder().encode(obfContent),
735736
};
736737
});

0 commit comments

Comments
 (0)