Skip to content

Instantly share code, notes, and snippets.

@jimbojw
Created June 22, 2010 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimbojw/448057 to your computer and use it in GitHub Desktop.
Save jimbojw/448057 to your computer and use it in GitHub Desktop.
{"/*":"*/","//":"",/*"//"*/"/*/"://
"//"}
@getify
Copy link

getify commented Jun 22, 2010

with JSON.minify(), goes down to:

{"/":"/","//":"","/*/":"//"}

correct, right?

@getify
Copy link

getify commented Jun 22, 2010

@jimbojw
Copy link
Author

jimbojw commented Jun 22, 2010

Should become this: {"/":"/","//":"","/*/":"//"}

The one you posted appears to be missing the asterisks in the first key/value pair.

@getify
Copy link

getify commented Jun 22, 2010

hmmm... good catch... that's strange... will investigate

@getify
Copy link

getify commented Jun 22, 2010

oh, nevermind... it works fine (run the test in the git repo to see)... must have been a copy-paste (or formatting) error when I put it into this gist.

@getify
Copy link

getify commented Jun 22, 2010

your's is missing the *'s as well... :) bug in gist?

@jimbojw
Copy link
Author

jimbojw commented Jun 22, 2010

haha - yes probably. It's probably interpreting them as emphasis like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment