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(parser): Fix endIndex of text events being off by 1 #932

Merged
merged 2 commits into from Aug 28, 2021
Merged

Conversation

fb55
Copy link
Owner

@fb55 fb55 commented Aug 28, 2021

While other events use the end index of a particular sequence (eg. a > in a tag) to signify the end index, text events use the start of something else as an index. This led to an off-by-one error in the previous release, where text events would have an index that was too high by 1. This fixes this.

While other events use the end index of a particular sequence (eg. a `>` in a tag) to signify the end index, text events use the start of something else as an index. This led to an off-by-one error in the previous release, where text events would have an index that was too high by 1. This fixes this.
@fb55 fb55 enabled auto-merge (squash) August 28, 2021 18:40
@coveralls
Copy link

coveralls commented Aug 28, 2021

Pull Request Test Coverage Report for Build 1177708696

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.515%

Totals Coverage Status
Change from base Build 1175965081: 0.0%
Covered Lines: 821
Relevant Lines: 825

💛 - Coveralls

@fb55 fb55 merged commit 78ef1b7 into master Aug 28, 2021
@fb55 fb55 deleted the fix/txt branch August 28, 2021 18:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants