Add trailing newline in stdin if it doesn't exist
This commit is contained in:
parent
61a833ca3c
commit
8bb72837b9
|
@ -44,6 +44,10 @@ class Job {
|
||||||
|
|
||||||
this.args = args;
|
this.args = args;
|
||||||
this.stdin = stdin;
|
this.stdin = stdin;
|
||||||
|
// Add a trailing newline if it doesn't exist
|
||||||
|
if (this.stdin.slice(-1) !== '\n') {
|
||||||
|
this.stdin += '\n';
|
||||||
|
}
|
||||||
|
|
||||||
this.timeouts = timeouts;
|
this.timeouts = timeouts;
|
||||||
this.memory_limits = memory_limits;
|
this.memory_limits = memory_limits;
|
||||||
|
|
Loading…
Reference in New Issue