Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created September 28, 2010 02:22
Show Gist options
  • Save ericelliott/600294 to your computer and use it in GitHub Desktop.
Save ericelliott/600294 to your computer and use it in GitHub Desktop.
node> "\\\\"
'\\\'
node> "1\/2\\3\\4\\5\\6\\"
'1/2\\3\\4\\5\\6\'
node> "1\/2\\3\\4\\5\\6"
'1/2\\3\\4\\5\\6'
:~/tmp# cat testme.js
console.log("\\\\");
:~/tmp# node testme.js
\\
UPDATE: 0.4.0 running on Mac OS X 10.6.6
$ node --version
v0.4.0
~/node-latest-install
$ node
> "\\\\"
'\\\'
> "1\/2\\3\\4\\5\\6\\"
'1/2\\3\\4\\5\\6\'
> "1\/2\\3\\4\\5\\6"
'1/2\\3\\4\\5\\6'
$ cat testme.js
console.log('\\\\');
~/node-latest-install
$ node testme.js
\\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment