We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16713ee commit 8d83fceCopy full SHA for 8d83fce
core/file/shared/fnmatch.rb
@@ -126,6 +126,13 @@
126
end
127
128
129
+ it "matches wildcard with characters when flags includes FNM_PATHNAME" do
130
+ File.send(@method, '*a', 'aa', File::FNM_PATHNAME).should == true
131
+ File.send(@method, 'a*', 'aa', File::FNM_PATHNAME).should == true
132
+ File.send(@method, 'a*', 'aaa', File::FNM_PATHNAME).should == true
133
+ File.send(@method, '*a', 'aaa', File::FNM_PATHNAME).should == true
134
+ end
135
+
136
it "does not match '/' characters with ? or * when flags includes FNM_PATHNAME" do
137
File.send(@method, '?', '/', File::FNM_PATHNAME).should == false
138
File.send(@method, '*', '/', File::FNM_PATHNAME).should == false
0 commit comments