mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
repl: use more readable RegExp syntax for spaces
This is just a cosmetic change really, nothing major.
This commit is contained in:
parent
085f9d636b
commit
55ea7ccf70
@ -924,5 +924,5 @@ function isSyntaxError(e) {
|
||||
!e.match(/^SyntaxError: .*strict mode.*/i) &&
|
||||
// JSON.parse() error
|
||||
!(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
Block a user