Permalink
Browse files

shebang doesn't have to contain env

  • Loading branch information...
1 parent e7b2c32 commit 502218a866d7809ceefb432b1fa9edda7e3f4dab @wilhelmtell wilhelmtell committed Feb 20, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 ftdetect/javascript.vim
@@ -1,5 +1,5 @@
function! s:DetectJS()
- if getline(1) =~# '^#!.*/bin/env\s\+node\>'
+ if getline(1) =~# '^#!.*/bin/\(env\s\+\)\?node\>'
setfiletype javascript
endif
endfunction

0 comments on commit 502218a

Please sign in to comment.