Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A comment at the beginning is ignored #4

Open
tomek-he-him opened this issue Jul 17, 2015 · 1 comment
Open

A comment at the beginning is ignored #4

tomek-he-him opened this issue Jul 17, 2015 · 1 comment

Comments

@tomek-he-him
Copy link

getComments('code\n/** comment */\ncode', true)
//» [ { start: 5,
//      end: 19,
//      type: 'Block',
//      loc: { start: [Object], end: [Object] },
//      api: false,
//      value: '* comment ',
//      after: 'code' } ]

getComments('/** comment */\ncode', true)
//» []
@tunnckoCore
Copy link
Owner

Nice catch. It because prev === ' ' here index.js#L41

tomek-he-him pushed a commit to b12-archive/dump-comments that referenced this issue Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants