From 91cc5cd0384beaffc7f824bfdc610814f83294a6 Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 8 Apr 2018 07:31:46 +0000 Subject: [DOC] `*` in glob matches `\n` too [ci skip] ``` File.fnmatch("a*b", "a\nb") # => true /\Aa.*b\z/x.match?("a\nb") # => false /\Aa.*b\z/mx.match?("a\nb") # => true ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 2260b9746f..a8e7f01d19 100644 --- a/dir.c +++ b/dir.c @@ -2653,7 +2653,7 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj) * * *:: * Matches any file. Can be restricted by other values in the glob. - * Equivalent to / .* /x in regexp. + * Equivalent to / .* /mx in regexp. * * *:: Matches all files * c*:: Matches all files beginning with c -- cgit v1.2.3