Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

349 B
Raw Blame
export { cn } from 'cn';

// A string of digits to a positive integer, or null when empty/invalid. Used by the
// numeric inputs in the provider settings forms (port, timeout, expiry).
export function toPositiveInt(value: string): number | null {
  const n = Number(value);
  return value.trim() !== '' && Number.isInteger(n) && n > 0 ? n : null;
}