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

Filter out invalid facets in RichText #2933

Merged
merged 5 commits into from
Oct 31, 2024
Merged

Filter out invalid facets in RichText #2933

merged 5 commits into from
Oct 31, 2024

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Oct 31, 2024

Negative-length facets cause text to be duplicated for whatever reason. Fixed by filtering out facets where byteStart is larger than byteEnd. Zero-length facets are still allowed.

A new test case was added to catch this:

Screenshot 2024-10-31 at 17 45 17

@mozzius mozzius requested a review from pfrazee October 31, 2024 17:44
@mozzius mozzius merged commit e680d55 into main Oct 31, 2024
10 checks passed
@mozzius mozzius deleted the samuel/funky-facets branch October 31, 2024 18:09
@github-actions github-actions bot mentioned this pull request Oct 31, 2024
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