diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-08-23 22:46:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 22:46:26 -0700 |
commit | 866d3e5327d11b6846edb1b65f73673008a43ed2 (patch) | |
tree | 89fc19a9237f532f006262bba00c563c2cc5be6c | |
parent | 569d5ce65b553a99e5c43d3bde60f6d670fdd5d0 (diff) |
Fixing regular expression...
This will allow loading the extension for Ruby 2.1.10...
-rw-r--r-- | ruby/lib/google/protobuf.rb | 2 |
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 |