fix: don’t use regex match

windows paths have backslashes, which are special in regex patterns
This commit is contained in:
Aryeh Leib Taurog 2019-01-03 21:45:25 +02:00
parent ba38688dff
commit 4a11a6337e

View file

@ -179,7 +179,7 @@ function! ale_linters#elm#make#IsTest(buffer) abort
let l:buffer_path = fnamemodify(bufname(a:buffer), ':p')
if match(l:buffer_path, l:tests_dir) == 0
if stridx(l:buffer_path, l:tests_dir) == 0
return 1
else
return 0