1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-12-04 21:52:29 +09:00
parent dbfd4b780e
commit fb11e6089d
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

1
dir.c
View file

@ -3176,6 +3176,7 @@ fnmatch_brace(const char *pattern, VALUE val, void *enc)
*
* File.fnmatch('cat', 'CAT') #=> false # case sensitive
* File.fnmatch('cat', 'CAT', File::FNM_CASEFOLD) #=> true # case insensitive
* File.fnmatch('cat', 'CAT', File::FNM_SYSCASE) #=> true or false # depends on the system default
*
* File.fnmatch('?', '/', File::FNM_PATHNAME) #=> false # wildcard doesn't match '/' on FNM_PATHNAME
* File.fnmatch('*', '/', File::FNM_PATHNAME) #=> false # ditto