Skip to content

Commit

Permalink
Fix IRB version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nhasselmeyer committed Feb 7, 2024
1 parent dd1f610 commit 3307a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
## Unreleased

### Compatible changes
* fix detection of IRB version

### Breaking changes

Expand Down
2 changes: 1 addition & 1 deletion lib/geordi/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def irb_version
version_string = if testing?
ENV['GEORDI_TESTING_IRB_VERSION']
else
`irb --version`[/irb (\d\.\d\.\d)/, 1]
`irb --version`[/irb (\d+\.\d+\.\d+)/, 1]
end

Gem::Version.new(version_string)
Expand Down

0 comments on commit 3307a54

Please sign in to comment.