diff --git a/index.ts b/index.ts index c9deae5..96d4430 100755 --- a/index.ts +++ b/index.ts @@ -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) {