Files
Netcatty/domain/sshAgentSettings.ts
T

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";
};