Skip to content

Check text fragments: fix matching with repeated end, fix nbsp, justify normalise #1

Merged
cristiklein merged 6 commits into
cristiklein:check-text-fragmentsfrom
rina-forks:check-text-fragments-update
Apr 19, 2026
Merged

Check text fragments: fix matching with repeated end, fix nbsp, justify normalise #1
cristiklein merged 6 commits into
cristiklein:check-text-fragmentsfrom
rina-forks:check-text-fragments-update

Conversation

@katrinafyi

Copy link
Copy Markdown

No description provided.

@katrinafyi katrinafyi force-pushed the check-text-fragments-update branch 3 times, most recently from 59d9ac0 to 4a3a80f Compare April 19, 2026 07:44
@katrinafyi katrinafyi force-pushed the check-text-fragments-update branch from 4a3a80f to 1cfca11 Compare April 19, 2026 07:52

@cristiklein cristiklein left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The regex-based matching feels a lot more readable and more robust. The new tests also gives more confidence that this actually works as expected.

| "img"
| "meter"
| "object"
| "progresss"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Today I Learned.

Suggested change
| "progresss"
| "progress" // https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/progress

}

let mut text = String::new();
let mut text: String = String::new();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why is this needed?

@cristiklein cristiklein merged commit 8313b54 into cristiklein:check-text-fragments Apr 19, 2026
5 of 6 checks passed
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