Skip to content

Commit 6da6e50

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e85286b commit 6da6e50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/harness/harnessUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function evalFile(fileContents: string, fileName: string, nodeContext?: a
1717

1818
const newlineRegex = /\r\n?|\n/;
1919

20-
/** Splits the given string on \r\n, or on only \n if that fails, or on only \r if *that* fails. */
20+
/** Splits the given string on any line terminator (\r\n, \r, or \n). */
2121
export function splitContentByNewlines(content: string): string[] {
2222
// Split up the input file by line
2323
const lines = content.split(newlineRegex);

0 commit comments

Comments
 (0)