Skip to content

Non-indented lines are ignored when calculating minimum indentation #20

@d07RiV

Description

@d07RiV

Consider this example

dedent`
test
  test2
`

Outputs

test
test2

Regex in line 43 (l.match(/^(\s+)\S+/);) should probably read \s* instead of \s+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions