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

fix: handle last empty line correctly when using update/overwrite #274

Merged
merged 1 commit into from Mar 3, 2024

Commits on Feb 28, 2024

  1. fix: handle last empty line correctly when using update/overwrite

    When the string passed to update or overwrite ends with a new line, the mappings will contain two entries for column zero. This happens because the loop does not bail if the last line is empty, filling two lines with the same mapping. This commit fixes that.
    Fixes Rich-Harris#273
    dummdidumm committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    e672108 View commit details
    Browse the repository at this point in the history