aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Joshua Haberman <jhaberman@gmail.com>2016-08-24 10:40:50 -0700
committerGravatar GitHub <noreply@github.com>2016-08-24 10:40:50 -0700
commitb97a4a53cdd55be74c30badefeb132a091764f53 (patch)
tree89fc19a9237f532f006262bba00c563c2cc5be6c
parent569d5ce65b553a99e5c43d3bde60f6d670fdd5d0 (diff)
parent866d3e5327d11b6846edb1b65f73673008a43ed2 (diff)
Merge pull request #2001 from nicolasnoble/patch-1
Fixing regular expression...
-rw-r--r--ruby/lib/google/protobuf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/lib/google/protobuf.rb b/ruby/lib/google/protobuf.rb
index 62bdd1bf..9b8d8231 100644
--- a/ruby/lib/google/protobuf.rb
+++ b/ruby/lib/google/protobuf.rb
@@ -45,7 +45,7 @@ if RUBY_PLATFORM == "java"
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