Skip to content

Commit

Permalink
strip trailing dot in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jun 1, 2024
1 parent 7f10afa commit 849ac26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function highlightDiff(a: string, b: string, colorFn: (str: string) => string) {
res += `${aParts[i]}.`;
}
}
return res;
return res.replace(/\.$/, "");
}

function formatDeps(deps: DepsByMode) {
Expand Down

0 comments on commit 849ac26

Please sign in to comment.