[前][次][番号順一覧][スレッド一覧]

ruby-changes:63451

From: Nobuyoshi <ko1@a...>
Date: Tue, 27 Oct 2020 08:55:40 +0900 (JST)
Subject: [ruby-changes:63451] 135d369096 (master): [DOC] more precise description of "**" in Dir.glob pattern [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=135d369096

From 135d369096524e3e949b0a8a3330c60c000e4702 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 27 Oct 2020 08:51:54 +0900
Subject: [DOC] more precise description of "**" in Dir.glob pattern [ci skip]


diff --git a/dir.rb b/dir.rb
index da19fc7..eb46305 100644
--- a/dir.rb
+++ b/dir.rb
@@ -81,7 +81,9 @@ class Dir https://github.com/ruby/ruby/blob/trunk/dir.rb#L81
   #   File::FNM_DOTMATCH flag or something like <code>"{*,.*}"</code>.
   #
   # <code>**</code>::
-  #   Matches directories recursively or files expansively.
+  #   Matches directories recursively if followed by <code>/</code>.  If
+  #   this path segment contains any other characters, it is the same as the
+  #   usual <code>*</code>.
   #
   # <code>?</code>::
   #   Matches any one character. Equivalent to <code>/.{1}/</code> in regexp.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]