Commit 866d3e53 authored by Nicolas Noble's avatar Nicolas Noble Committed by GitHub

Fixing regular expression...

This will allow loading the extension for Ruby 2.1.10...
parent 569d5ce6
...@@ -45,7 +45,7 @@ if RUBY_PLATFORM == "java" ...@@ -45,7 +45,7 @@ if RUBY_PLATFORM == "java"
require 'google/protobuf_java' require 'google/protobuf_java'
else else
begin begin
require "google/#{RUBY_VERSION.sub(/\.\d$/, '')}/protobuf_c" require "google/#{RUBY_VERSION.sub(/\.\d+$/, '')}/protobuf_c"
rescue LoadError rescue LoadError
require 'google/protobuf_c' require 'google/protobuf_c'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment