repl: use more readable RegExp syntax for spaces
authorNathan Rajlich <nathan@tootallnate.net>
Sat, 30 Mar 2013 20:35:36 +0000 (13:35 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Sat, 30 Mar 2013 20:35:36 +0000 (13:35 -0700)
This is just a cosmetic change really, nothing major.

lib/repl.js

index 522bfd7d5bd4dd4ceec105abbb699b7b0e170b49..84441ef130c65876d80950c2c117d277002939de 100644 (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/));
 }