Skip to content

Commit

Permalink
Fixing regular expression...
Browse files Browse the repository at this point in the history
This will allow loading the extension for Ruby 2.1.10...
  • Loading branch information
nicolasnoble authored Aug 24, 2016
1 parent 569d5ce commit 866d3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/lib/google/protobuf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ParseError < Error; end
require 'google/protobuf_java'
else
begin
require "google/#{RUBY_VERSION.sub(/\.\d$/, '')}/protobuf_c"
require "google/#{RUBY_VERSION.sub(/\.\d+$/, '')}/protobuf_c"
rescue LoadError
require 'google/protobuf_c'
end
Expand Down

0 comments on commit 866d3e5

Please sign in to comment.