Skip to content

Support the same Regexps to be Regexp.linear_time? as CRuby #3858

Open
@eregon

Description

@eregon

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions