Skip to content

Commit

Permalink
fix(version): update get last commit hash info regex to support all t…
Browse files Browse the repository at this point in the history
…imezone (#875)
  • Loading branch information
njfamirm committed Jun 13, 2024
1 parent 8d01f69 commit 30bf0e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function getOldestCommitSinceLastTag(execOpts?: ExecOpts, isIndependent?:
commitResult = execSync('git', gitCommandArgs, execOpts);
}

const [, commitHash, commitDate] = /^"?([0-9a-f]+)\s([0-9\-|+T:]*)"?$/.exec(commitResult) || [];
const [, commitHash, commitDate] = /^"?([0-9a-f]+)\s([0-9\-Z.|+T:]*)"?$/.exec(commitResult) || [];
// prettier-ignore
log.info('oldestCommitSinceLastTag', `commit found since last tag: ${lastTagName} - (SHA) ${commitHash} - ${commitDate}`);

Expand Down

0 comments on commit 30bf0e7

Please sign in to comment.