Files
n8n-openai-adapter/lib/elixir/test
Panagiotis Nezis bbe700151e Fix File.Stream Enumerable.count for files without trailing newline (#15147)
The optimized count implementation was counting newline characters
instead of actual lines, returning incorrect results for files that
don't end with a newline (which is common for source code files).

For example, a file with content "line1\nline2\nline3" (3 lines)
was returning 2 instead of 3.

The fix tracks the last byte read and adds 1 at EOF if the file
has content but doesn't end with a newline.
2026-03-07 11:54:01 +01:00
..