зеркало из https://github.com/github/ruby.git
load.c: match comment with variable (`e' => `ext') [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bf783276f6
Коммит
243ab2a23e
4
load.c
4
load.c
|
@ -215,8 +215,8 @@ features_index_add_single(VALUE short_feature, VALUE offset)
|
|||
/* Add to the loaded-features index all the required entries for
|
||||
`feature`, located at `offset` in $LOADED_FEATURES. We add an
|
||||
index entry at each string `short_feature` for which
|
||||
feature == "#{prefix}#{short_feature}#{e}"
|
||||
where `e` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty
|
||||
feature == "#{prefix}#{short_feature}#{ext}"
|
||||
where `ext` is empty or matches %r{^\.[^./]*$}, and `prefix` is empty
|
||||
or ends in '/'. This maintains the invariant that `rb_feature_p()`
|
||||
relies on for its fast lookup.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче