소스 검색

Merge pull request #2001 from nicolasnoble/patch-1

Fixing regular expression...
Joshua Haberman 9 년 전
부모
커밋
b97a4a53cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruby/lib/google/protobuf.rb

+ 1 - 1
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