scripts/selector in rvm-0.0.96 vs scripts/selector in rvm-0.0.97

- old
+ new

@@ -358,13 +358,14 @@ unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag rvm_ruby_patch="$string" elif $rvm_scripts_path/match "$string" "^u[a-z0-9]" ; then unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag rvm_ruby_patch rvm_ruby_user_tag="$string" - elif $rvm_scripts_path/match "$string" "^[a-z][a-z]" ; then + elif [[ "$string" = "ruby" ]] || [[ "$string" = "jruby" ]] || [[ "$string" = "ree" ]] || [[ "$string" = "macruby" ]] || [[ "$string" = "rbx" ]] || [[ "$string" = "rubinius" ]] || [[ "$string" = "mput" ]] || [[ "$string" = "shyouhei" ]] || [[ "$string" = "ironruby" ]] ; then rvm_ruby_interpreter="$string" else $rvm_scripts_path/log "error" "Unknown ruby string component: '$string'" + return 1 fi done # Unspecified interpreter if [[ -z "$rvm_ruby_interpreter" ]] ; then