diff --git a/src/core/output/outputStyleDecorate.ts b/src/core/output/outputStyleDecorate.ts index 2304e140d..8d2a8db96 100644 --- a/src/core/output/outputStyleDecorate.ts +++ b/src/core/output/outputStyleDecorate.ts @@ -75,8 +75,7 @@ export const generateHeader = (config: RepomixConfigMerged, generationDate: stri const processingInfo = processingNotes.length > 0 ? ` The content has been processed where ${processingNotes.join(', ')}.` : ''; - return `${description}, combined into a single document.${processingInfo} -Generated by Repomix on: ${generationDate}`; + return `${description}, combined into a single document by Repomix.${processingInfo}`; }; export const generateSummaryPurpose = (): string => { diff --git a/tests/integration-tests/fixtures/packager/outputs/simple-project-output.txt b/tests/integration-tests/fixtures/packager/outputs/simple-project-output.txt index 5330b377a..3ea525d1d 100644 --- a/tests/integration-tests/fixtures/packager/outputs/simple-project-output.txt +++ b/tests/integration-tests/fixtures/packager/outputs/simple-project-output.txt @@ -1,4 +1,4 @@ -This file is a merged representation of the entire codebase, combined into a single document. +This file is a merged representation of the entire codebase, combined into a single document by Repomix. ================================================================ File Summary diff --git a/tests/integration-tests/fixtures/packager/outputs/simple-project-output.xml b/tests/integration-tests/fixtures/packager/outputs/simple-project-output.xml index 94d10f407..48ad7c6c0 100644 --- a/tests/integration-tests/fixtures/packager/outputs/simple-project-output.xml +++ b/tests/integration-tests/fixtures/packager/outputs/simple-project-output.xml @@ -1,4 +1,4 @@ -This file is a merged representation of the entire codebase, combined into a single document. +This file is a merged representation of the entire codebase, combined into a single document by Repomix. This section contains a summary of this file. diff --git a/tests/integration-tests/packager.test.ts b/tests/integration-tests/packager.test.ts index fbf72da1d..34b9084c7 100644 --- a/tests/integration-tests/packager.test.ts +++ b/tests/integration-tests/packager.test.ts @@ -121,11 +121,8 @@ describe.runIf(!isWindows)('packager integration', () => { }); // Read the actual and expected outputs - let actualOutput = await fs.readFile(actualOutputPath, 'utf-8'); - let expectedOutput = await fs.readFile(expectedOutputPath, 'utf-8'); - - actualOutput = actualOutput.replace(/^Generated by Repomix on:.*\n/gm, ''); - expectedOutput = expectedOutput.replace(/^Generated by Repomix on:.*\n/gm, ''); + const actualOutput = await fs.readFile(actualOutputPath, 'utf-8'); + const expectedOutput = await fs.readFile(expectedOutputPath, 'utf-8'); // Compare the outputs expect(actualOutput).toBe(expectedOutput);