projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085f9d6
)
repl: use more readable RegExp syntax for spaces
author
Nathan Rajlich
<nathan@tootallnate.net>
Sat, 30 Mar 2013 20:35:36 +0000
(13:35 -0700)
committer
Nathan 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
patch
|
blob
|
history
diff --git
a/lib/repl.js
b/lib/repl.js
index 522bfd7d5bd4dd4ceec105abbb699b7b0e170b49..84441ef130c65876d80950c2c117d277002939de 100644
(file)
--- a/
lib/repl.js
+++ b/
lib/repl.js
@@
-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/));
}