Files
Netcatty/domain/sshAgentSettings.ts
T
2026-07-12 19:11:57 +08:00

5 lines
210 B
TypeScript

export const isSshAgentNoneValue = (value: string | undefined): boolean => {
if (typeof value !== "string") return false;
return value.trim().replace(/^["']|["']$/g, "").trim().toLowerCase() === "none";
};