Skip to content

The open-source app everyone uses to manage agents at work

168 B
Raw Blame
export function firstNonEmptyLine(text: string): string {
  return (
    text
      .split(/\r?\n/)
      .map((line) => line.trim())
      .find(Boolean) ?? ""
  );
}