export const REG_NEW_LINE = /[\n\r]/g export function toLines(str: string): string[] { return str .trim() .split(REG_NEW_LINE) .filter((s) => !!s) }