diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2016-08-24 10:40:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-24 10:40:50 -0700 |
commit | b97a4a53cdd55be74c30badefeb132a091764f53 (patch) | |
tree | 89fc19a9237f532f006262bba00c563c2cc5be6c | |
parent | 569d5ce65b553a99e5c43d3bde60f6d670fdd5d0 (diff) | |
parent | 866d3e5327d11b6846edb1b65f73673008a43ed2 (diff) | |
download | protobuf-b97a4a53cdd55be74c30badefeb132a091764f53.tar.gz protobuf-b97a4a53cdd55be74c30badefeb132a091764f53.tar.bz2 protobuf-b97a4a53cdd55be74c30badefeb132a091764f53.zip |
Merge pull request #2001 from nicolasnoble/patch-1
Fixing regular expression...
-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 |