Skip to content

Commit

Permalink
fix(semver): 馃悶 use str#trim to remove line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Apr 24, 2022
1 parent ed6abec commit 812601b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/semver/src/executors/version/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export function addToStage({

export function getFirstCommitRef(): Observable<string> {
return exec('git', ['rev-list', '--max-parents=0', 'HEAD']).pipe(
/** Remove line breaks. */
map((output) => output.replace(/\r?\n|\r/, ''))
map((output) => output.trim())
);
}

Expand Down

0 comments on commit 812601b

Please sign in to comment.