Merge pull request #13 from blainelewis1/patch-1

Fix bug where files have same name but differing paths
This commit is contained in:
Till Friebe 2024-02-15 13:38:53 +07:00 committed by GitHub
commit ac4ea85fe0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ export default class FileDiffPlugin extends Plugin {
''
);
const originalFile = files.find(
(f) => f.name === originalFileName
(f) => f.name === originalFileName && (file.parent?.path ?? "") === (f.parent?.path ?? "")
);
if (originalFile) {