{"action":"opened","issue":{"url":"https://api.github.com/repos/tunnckoCore/get-comments/issues/5","labels_url":"https://api.github.com/repos/tunnckoCore/get-comments/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tunnckoCore/get-comments/issues/5/comments","events_url":"https://api.github.com/repos/tunnckoCore/get-comments/issues/5/events","html_url":"https://github.com/tunnckoCore/get-comments/issues/5","id":95710339,"number":5,"title":"Funny treatment of whitespace","user":{"login":"tomekwi","id":4624660,"avatar_url":"https://avatars.githubusercontent.com/u/4624660?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekwi","html_url":"https://github.com/tomekwi","followers_url":"https://api.github.com/users/tomekwi/followers","following_url":"https://api.github.com/users/tomekwi/following{/other_user}","gists_url":"https://api.github.com/users/tomekwi/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekwi/subscriptions","organizations_url":"https://api.github.com/users/tomekwi/orgs","repos_url":"https://api.github.com/users/tomekwi/repos","events_url":"https://api.github.com/users/tomekwi/events{/privacy}","received_events_url":"https://api.github.com/users/tomekwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-17T18:01:59Z","updated_at":"2015-07-17T18:01:59Z","closed_at":null,"body":"```js\r\ngetComments('code\\n/** comment */\\ncode', true)\r\n//» [ { start: 5,\r\n//      end: 19,\r\n//      type: 'Block',\r\n//      loc: { start: [Object], end: [Object] },\r\n//      api: false,\r\n//      value: '* comment ',\r\n//      after: 'code' } ]\r\n\r\ngetComments('code /** comment */ code', true)\r\n//» []\r\n\r\ngetComments('code\\n/** comment */ code', true)\r\n//» []\r\n\r\ngetComments('code /** comment */\\ncode', true)\r\n//» []\r\n```\r\n\r\nThe majority of text parsers I know of – in the web (HTML, JS, CSS) and in Unix (bash and the like) – makes no difference between whitespace characters. It’s enough that there is at least one of the characters `[ \\n\\t]` between things so that they are read as separate.\r\n\r\nThat’s what I’d expect of your tool – and most other users as well, I guess."}}