Skip to content

Commit 3031d8c

Browse files
committed
Drop windows path separators from vimrc regex
Per PR review
1 parent 14c3805 commit 3031d8c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

assets/json/pattern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
".*materialize.*\\.js$": "",
88
".*mootools.*\\.js$": "",
99
".*require.*\\.js$": "",
10-
".*vimrc[^/\\\\]*$": "",
10+
".*vimrc[^/]*$": "",
1111
"/Contacts\\.$": "󰉌",
1212
"/Desktop\\.$": "",
1313
"/Downloads\\.$": "󰉍",

test/nerdfont/path/pattern.vimspec

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Describe nerdfont#path#pattern
2020
Assert Equals(glyph, '')
2121
End
2222

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-
2823
It returns a Vim glyph for vimrc patterns
2924
let glyph = nerdfont#path#pattern#find('vimrc-whatever')
3025
Assert Equals(glyph, '')

0 commit comments

Comments
 (0)