Skip to content

Match scan capture groups behaviour to Ruby#2

Merged
ocvit merged 3 commits intomainfrom
fix/match-scan-behaviour-to-ruby
Apr 25, 2025
Merged

Match scan capture groups behaviour to Ruby#2
ocvit merged 3 commits intomainfrom
fix/match-scan-behaviour-to-ruby

Conversation

@ocvit
Copy link
Copy Markdown
Owner

@ocvit ocvit commented Apr 25, 2025

# ruby
"ruby:123, rust:456".scan(/\w+:\d+/)
# => ["ruby:123", "rust:456"]

# before
RustRegexp.new('\w+:\d+').scan("ruby:123, rust:456")
# => [["ruby:123"], ["rust:456"]]

# after
RustRegexp.new('\w+:\d+').scan("ruby:123, rust:456")
# => ["ruby:123", "rust:456"]

@ocvit ocvit merged commit 0707d01 into main Apr 25, 2025
18 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.

1 participant