Skip to content

Commit

Permalink
fix: use the full name of the original file to name the disassembled …
Browse files Browse the repository at this point in the history
…leaf file
  • Loading branch information
mcarvin8 committed Feb 21, 2024
1 parent 3fa7692 commit 1f56382
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Binary file modified .github/images/disassembled-hashes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/disassembled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions src/service/disassembleXMLFileHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ export class DisassembleXMLFileHandler {
if (filePath.endsWith(".xml")) {
console.log(`Parsing file: ${filePath}`);
const xmlContent = await fs.readFile(filePath, "utf-8");
const baseName = path
.basename(filePath, path.extname(filePath))
.split(".")[0];
const fullName = path.basename(filePath, path.extname(filePath));
const baseName = fullName.split(".")[0];

let outputPath;
outputPath = path.join(xmlPath, baseName);
Expand All @@ -44,7 +43,7 @@ export class DisassembleXMLFileHandler {
outputPath,
uniqueIdElements,
xmlElement,
baseName,
fullName,
INDENT,
);
}
Expand Down

0 comments on commit 1f56382

Please sign in to comment.