shebang doesn't have to contain env

This commit is contained in:
Matan Nassau
2016-02-20 18:59:10 -05:00
parent e7b2c327d4
commit 502218a866

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