Skip to content

Commit

Permalink
Fixed regex pattern for ruby_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 29, 2022
1 parent 132d9b9 commit 318a952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chkbuild/ruby.rb
Expand Up @@ -224,7 +224,7 @@ def (ChkBuild::Ruby::CompleteOptions).call(target_opts)
end

# To use in-tree ruby/spec examples after Ruby 2.7
if ruby_branch.gsub(/^ruby_/, "").tr("_", ".") >= "2.7" && opts[:rubyspec]
if ruby_branch.gsub(/^branches\/ruby_/, "").tr("_", ".") >= "2.7" && opts[:rubyspec]
opts[:use_rubyspec] = false
opts[:use_rubyspec_in_tree] = true
end
Expand Down

0 comments on commit 318a952

Please sign in to comment.