diff --git a/lib/facter/rvm_version.rb b/lib/facter/rvm_version.rb index 7273b387..ec6b8ac6 100644 --- a/lib/facter/rvm_version.rb +++ b/lib/facter/rvm_version.rb @@ -4,6 +4,6 @@ rvm_binary = '/usr/local/rvm/bin/rvm' setcode do - File.exist?(rvm_binary) ? `#{rvm_binary} version`.strip.match(%r{rvm ([0-9]+\.[0-9]+\.[0-9]+) .*})[1] : nil + File.exist?(rvm_binary) ? `#{rvm_binary} version`.strip.match(%r{rvm ([0-9]+\.[0-9]+\.[0-9]+)(?:-next)? .*})[1] : nil end end