Skip to content

Commit 7f7c63a

Browse files
committed
fix: fix "meaningful output" regex for failOnStderr
1 parent d321ca8 commit 7f7c63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test/command-acceptance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default class CommandAcceptanceTest {
210210
let output = d.toString();
211211
stderrBuffer += output;
212212
combinedBuffer += output;
213-
if (options.failOnStderr && stderrBuffer.match(/A-z0-9/)) {
213+
if (options.failOnStderr && stderrBuffer.match(/[A-z0-9]/)) {
214214
process.removeListener('exit', cleanup);
215215
this.cleanup();
216216
reject(new FailOnStderrError(this.dir, this.command, combinedBuffer, output));

0 commit comments

Comments
 (0)