Open
Description
We noticed in ruby/net-imap#470 that some Regexp are not Regexp.linear_time? on TruffleRuby, but they should be.
See the output in CI of that PR/repo, e.g. https://github.com/ruby/net-imap/actions/runs/14917675208/job/41906831286#step:5:54
One specific I noticed is /[\x80-\xff\r\n]/n
, which I have a fix for.
(cc @nevans)