We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b3e45 commit d0b4c39Copy full SHA for d0b4c39
test/parallel/test-readline-line-separators.js
@@ -14,7 +14,5 @@ const linesRead = [];
14
rli.on('line', (line) => linesRead.push(line));
15
16
rli.on('close', common.mustCall(() => {
17
- const regexpLines = str.split(/^/m).map((line) => line.trim()).filter(Boolean);
18
- // Readline interprets different lines in the same way js regular expressions do
19
- assert.deepStrictEqual(linesRead, regexpLines);
+ assert.deepStrictEqual(linesRead, ['012', '345', '67', '89', 'ABC', 'DEF']);
20
}));
0 commit comments