Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/json/pattern.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
".*materialize.*\\.js$": "",
".*mootools.*\\.js$": "",
".*require.*\\.js$": "",
".*vimrc.*": "",
".*vimrc[^/]*$": "",
"/Contacts\\.$": "󰉌",
"/Desktop\\.$": "",
"/Downloads\\.$": "󰉍",
Expand Down
12 changes: 12 additions & 0 deletions test/nerdfont/path/pattern.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ Describe nerdfont#path#pattern
Assert Equals(glyph, '')
End

It returns a Vagrant glyph for 'Vagrantfile' stored under a vimrc path
let glyph = nerdfont#path#pattern#find('vimrc-modules/Vagrantfile')
Assert Equals(glyph, '')
End

It returns a Vim glyph for vimrc patterns
let glyph = nerdfont#path#pattern#find('vimrc-whatever')
Assert Equals(glyph, '')
let glyph = nerdfont#path#pattern#find('.vimrc')
Assert Equals(glyph, '')
End

It returns an empty string for 'hogehogefoobar'
let glyph = nerdfont#path#pattern#find('hogehogefoobar')
Assert Equals(glyph, '')
Expand Down
Loading