Skip to content

Linear-time HTML strip and User-Agent trim - #17

Merged
boxlinknet merged 2 commits into
mainfrom
fix/linear-strip
Nov 8, 2026
Merged

boxlinknet merged 2 commits into
mainfrom
fix/linear-strip

Conversation

@boxlinknet

Copy link
Copy Markdown
Member

CodeQL rb/polynomial-redos: gsub(/<[^>]*>/) and /\A-+|-+\z/ are quadratic on long runs of '<' or '-'. Both replaced by scans with the same results; tests compare with the old regex and time 200k-character inputs. No version change.

Comment thread test/test_message.rb Fixed
@boxlinknet
boxlinknet merged commit ace1e65 into main Nov 8, 2026
11 checks passed
@boxlinknet
boxlinknet deleted the fix/linear-strip branch November 8, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants