Fix linting issue

This commit is contained in:
Tim Pope
2018-04-19 13:33:44 -04:00
parent 6caad2b61a
commit ecefe85ac5

View File

@@ -14,7 +14,7 @@ function! s:throw(string) abort
endfunction
function! s:shellesc(arg) abort
if a:arg =~ '^[A-Za-z0-9_/.-]\+$'
if a:arg =~# '^[A-Za-z0-9_/.-]\+$'
return a:arg
elseif &shell =~# 'cmd' && a:arg !~# '"'
return '"'.a:arg.'"'