shebang doesn't have to contain env

This commit is contained in:
Matan Nassau committed 2016-02-20 18:59:10 -05:00
1 parent e7b2c327d4
commit 502218a866
1 file changed
+1 -1
+1 -1
View File
@@ -1,5 +1,5 @@
function! s:DetectJS() function! s:DetectJS()
if getline(1) =~# '^#!.*/bin/env\s\+node\>' if getline(1) =~# '^#!.*/bin/\(env\s\+\)\?node\>'
setfiletype javascript setfiletype javascript
endif endif
endfunction endfunction