mirror of https://github.com/nodejs/node.git
repl: use more readable RegExp syntax for spaces
This is just a cosmetic change really, nothing major.pull/5010/head
parent
085f9d636b
commit
55ea7ccf70
|
@ -924,5 +924,5 @@ function isSyntaxError(e) {
|
||||||
!e.match(/^SyntaxError: .*strict mode.*/i) &&
|
!e.match(/^SyntaxError: .*strict mode.*/i) &&
|
||||||
// JSON.parse() error
|
// JSON.parse() error
|
||||||
!(e.match(/^SyntaxError: Unexpected (token .*|end of input)/) &&
|
!(e.match(/^SyntaxError: Unexpected (token .*|end of input)/) &&
|
||||||
e.match(/\n at Object.parse \(native\)\n/));
|
e.match(/\n {4}at Object.parse \(native\)\n/));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue