Commit b97a4a53 authored by Joshua Haberman's avatar Joshua Haberman Committed by GitHub

Merge pull request #2001 from nicolasnoble/patch-1

Fixing regular expression...
parents 569d5ce6 866d3e53
......@@ -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
......
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