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

Does not work correctly when there is no leading whitespace on line #20

Open
kachkaev opened this issue Apr 28, 2018 · 0 comments
Open

Comments

@kachkaev
Copy link

Steps to reproduce:

  1. Open test/index.ts

  2. Replace

  const ast = jsonAST(`
  obj:
    arr:
    - nums:
      - 1
      - 2
      - 3
      strs1:
      - '1'
      - '2'
      - '3'
    str: '1'
    num: 1
  `);

with

  const ast = jsonAST(`
obj:
  arr:
  - nums:
    - 1
    - 2
    - 3
    strs1:
    - '1'
    - '2'
    - '3'
  str: '1'
  num: 1
  `);
  1. Run yarn test and see them failing

Thanks for this useful package guys! I'll see if I can help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant