Browse files

Fixing regular expression.

The single `.` here matches anything. The regular expression was happily working but it's technically not what we want to do. We want to match an actual dot, not "any character".
  • Loading branch information...
1 parent 6101d75 commit d0fd3260c3d486e05f2da793c9caba58501813de @nicolasnoble nicolasnoble committed on GitHub Aug 19, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
@@ -393,7 +393,7 @@ cross compiling from a Linux or OSX host. Patches are welcome if building
Now it's up to you to make your gem load the proper binary at runtime:
- RUBY_VERSION =~ /(\d+.\d+)/
+ RUBY_VERSION =~ /(\d+\.\d+)/
require "#{$1}/my_extension"
rescue LoadError
require "my_extension"

0 comments on commit d0fd326

Please sign in to comment.