fix: don’t use regex match
windows paths have backslashes, which are special in regex patterns
This commit is contained in:
parent
ba38688dff
commit
4a11a6337e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue