0
0
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:
Nathan Rajlich 2013-03-30 13:35:36 -07:00
parent 085f9d636b
commit 55ea7ccf70

View File

@ -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/));
}