File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 77 ".*materialize.*\\ .js$" : " " ,
88 ".*mootools.*\\ .js$" : " " ,
99 ".*require.*\\ .js$" : " " ,
10- ".*vimrc.* " : " " ,
10+ ".*vimrc[^/ \\\\ ]*$ " : " " ,
1111 "/Contacts\\ .$" : " " ,
1212 "/Desktop\\ .$" : " " ,
1313 "/Downloads\\ .$" : " " ,
Original file line number Diff line number Diff line change @@ -15,6 +15,23 @@ Describe nerdfont#path#pattern
1515 Assert Equals(glyph, '')
1616 End
1717
18+ It returns a Vagrant glyph for 'Vagrantfile' stored under a vimrc path
19+ let glyph = nerdfont#path#pattern#find('vimrc-modules/Vagrantfile')
20+ Assert Equals(glyph, '')
21+ End
22+
23+ It returns a Vagrant glyph for 'Vagrantfile' stored under a Windows vimrc path
24+ let glyph = nerdfont#path#pattern#find('vimrc-modules\Vagrantfile')
25+ Assert Equals(glyph, '')
26+ End
27+
28+ It returns a Vim glyph for vimrc patterns
29+ let glyph = nerdfont#path#pattern#find('vimrc-whatever')
30+ Assert Equals(glyph, '')
31+ let glyph = nerdfont#path#pattern#find('.vimrc')
32+ Assert Equals(glyph, '')
33+ End
34+
1835 It returns an empty string for 'hogehogefoobar'
1936 let glyph = nerdfont#path#pattern#find('hogehogefoobar')
2037 Assert Equals(glyph, '')
You can’t perform that action at this time.
0 commit comments