repl: use more readable RegExp syntax for spaces

This is just a cosmetic change really, nothing major.
pull/5010/head
Nathan Rajlich 2013-03-30 13:35:36 -07:00
parent 085f9d636b
commit 55ea7ccf70
1 changed files with 1 additions and 1 deletions

View File

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