Skip to content

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

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