Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit da39703

Browse files
committed
[fixed] simplified regexp pattern for error detection in NativeProcess
1 parent 0cb7c32 commit da39703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NativeProcess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {StringOrErrorCallback} from './typedef';
44
import spawn from 'cross-spawn';
55
import noop from 'lodash/noop';
66

7-
const errorPattern = /([^\s]*Error): (.*)[\s\S]*/;
7+
const errorPattern = /(\w*Error): (.*)[\s\S]*/;
88

99
/**
1010
* Encapsulates a {@link https://nodejs.org/api/child_process.html#child_process_class_childprocess ChildProcess}

0 commit comments

Comments
 (0)