github-webhook-filter/lib/util.ts

4 lines
120 B
TypeScript

export function parseBool(s: string): boolean {
return ["1", "true", "on", "y", "yes"].includes(s.toLowerCase());
}