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:
parent
dbfd4b780e
commit
fb11e6089d
1 changed files with 1 additions and 0 deletions
1
dir.c
1
dir.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue