Skip to content

[BUG] TextFile Logging doesn't respect newlines #645

@jrentlez

Description

@jrentlez

Steps to reproduce

  1. Run jayvee with the peek debug granularity
  2. Use TextFileInterpreter to parse a file with newlines not matched by the regex /\r?\n/

Description

  • Expected: The logging output cuts off after 10 lines
  • Actual: The lines aren't detected properly due to the false lineBreak regex.

// BUG: /\r?\n/ might not be the correct line break
const result = findLineBounds(
[this.PEEK_NUMBER_OF_LINES - 1],
/\r?\n/,
textFile.content,
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions