Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{"/*":"*/","//":"",/*"//"*/"/*/"://
"//"}
@getify

This comment has been minimized.

Copy link

getify commented Jun 22, 2010

with JSON.minify(), goes down to:

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

correct, right?

@getify

This comment has been minimized.

Copy link

getify commented Jun 22, 2010

@jimbojw

This comment has been minimized.

Copy link
Owner 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

This comment has been minimized.

Copy link

getify commented Jun 22, 2010

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

@getify

This comment has been minimized.

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

This comment has been minimized.

Copy link

getify commented Jun 22, 2010

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

@jimbojw

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.