Skip to content

Commit

Permalink
fix getFileCommitDate when options display signature
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Apr 5, 2024
1 parent f42e98e commit f3b364b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-utils/src/gitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export async function getFileCommitDate(
}

const regex = includeAuthor
? /^RESULT:(?<timestamp>\d+),(?<author>.+)$/
: /^RESULT:(?<timestamp>\d+)$/;
? /(?:^|\n)RESULT:(?<timestamp>\d+),(?<author>.+)(?:$|\n)/
: /(?:^|\n)RESULT:(?<timestamp>\d+)(?:$|\n)/;

const output = result.stdout.trim();

Expand Down

0 comments on commit f3b364b

Please sign in to comment.