From d6c52bd5d90657ffc795709eec94b1f5d253b011 Mon Sep 17 00:00:00 2001 From: murashit Date: Sat, 23 May 2026 04:50:33 +0900 Subject: [PATCH] Fix prefer-string-starts-ends-with lint --- src/display/thread-items.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/thread-items.ts b/src/display/thread-items.ts index 4ec8bfaa..49e9446f 100644 --- a/src/display/thread-items.ts +++ b/src/display/thread-items.ts @@ -370,7 +370,7 @@ function unwrapShellLoginCommand(command: string): string { function unquoteShellCommand(value: string): string { if (value.length < 2) return value; const quote = value[0]; - if ((quote !== "'" && quote !== '"') || value[value.length - 1] !== quote) return value; + if ((quote !== "'" && quote !== '"') || !value.endsWith(quote)) return value; const inner = value.slice(1, -1); return quote === "'" ? inner.replace(/'\\''/g, "'") : inner.replace(/\\(["\\$`])/g, "$1"); }