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.
2 parents e7b2c32 + 502218a commit 7064a6eCopy full SHA for 7064a6e
ftdetect/javascript.vim
@@ -1,5 +1,5 @@
1
function! s:DetectJS()
2
- if getline(1) =~# '^#!.*/bin/env\s\+node\>'
+ if getline(1) =~# '^#!.*/bin/\(env\s\+\)\?node\>'
3
setfiletype javascript
4
endif
5
endfunction
0 commit comments