summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index b3cc629c27..73f04ce868 100644
--- a/eval.c
+++ b/eval.c
@@ -6916,6 +6916,9 @@ search_required(fname, path)
}
}
}
+ else if (!strchr(ftptr, '/')) {
+ if (rb_feature_p(ftptr, 0, Qfalse)) return 's';
+ }
tmp = fname;
type = rb_find_file_ext(&tmp, loadable_ext);
tmp = rb_file_expand_path(tmp, Qnil);