Skip to content

Conversation

@kares
Copy link
Contributor

@kares kares commented Dec 31, 2025

added an extra step upon creating a substring from scanner.string -> retaining code-range when possible

also, there was an attempt to raise "regexp buffer overflow" upon Matcher.INTERRUPTED (-2), which isn't possible as the RubyRegexp#matcherMatch/matcherSearch handle the interrupt return.

a follow-up on #185

@kares kares force-pushed the jruby-compat+cr-clean branch from 5634bbe to d3202bd Compare December 31, 2025 21:17
@kares kares changed the title retain code-range upon string extraction + minor updates to match strscan.c retain code-range upon string extraction + alingment with strscan.c Dec 31, 2025
@kares kares changed the title retain code-range upon string extraction + alingment with strscan.c retain code-range upon string extraction + alignment with strscan.c Dec 31, 2025
@kares kares changed the title retain code-range upon string extraction + alignment with strscan.c retain code-range upon string extraction + align with strscan.c Jan 1, 2026
@headius
Copy link
Contributor

headius commented Jan 5, 2026

Looks good, thank you! If you don't have any other changes coming we could spin a release.

@headius headius merged commit fa612d1 into ruby:master Jan 5, 2026
41 of 42 checks passed
@kares
Copy link
Contributor Author

kares commented Jan 6, 2026

I don't have anything else atm, would be great to have a release.

@headius
Copy link
Contributor

headius commented Jan 6, 2026

Released in v3.1.7!

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