Skip to content

Fix closing tag position detection when not reading from beginning of file#78

Merged
prewk merged 1 commit into
prewk:masterfrom
jDolba:fix-parsing-after-seek
Aug 12, 2021
Merged

Fix closing tag position detection when not reading from beginning of file#78
prewk merged 1 commit into
prewk:masterfrom
jDolba:fix-parsing-after-seek

Conversation

@dominik-vasicek

Copy link
Copy Markdown
Contributor

Follow-up of #77

Closing tag position in working blob is being detected no matter the position of the opening one. This creates case where length of string to be flushed might become negative, resulting in flushing all of working blob except x characters, where x is difference in position between opening and closing tag.

This update is made to support seeking through stream without invalid items found.

@prewk

prewk commented Aug 11, 2021

Copy link
Copy Markdown
Owner

Thanks! I'm glad we have tests, it's hard to wrap my head around this parsing at a glance.

I'll merge it when I have the chance.

@prewk prewk merged commit 5ea52aa into prewk:master Aug 12, 2021
@prewk

prewk commented Aug 12, 2021

Copy link
Copy Markdown
Owner

Merged and released 1.2.1

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.

2 participants