diff --git a/src/commands/web.ts b/src/commands/web.ts index c94fc40..e4fb3b1 100644 --- a/src/commands/web.ts +++ b/src/commands/web.ts @@ -43,8 +43,9 @@ function formatStat(raw: string): string { if (pipe === -1) return line return line.slice(0, pipe + 1) + line.slice(pipe + 1) - .replace(/\+/g, '+') - .replace(/-/g, '-') + .replace(/[+-]/g, c => c === "+" + ? '+' + : '-') }).join("\n") }