mirror of
https://github.com/dense-analysis/ale
synced 2025-02-16 12:16:56 +00:00
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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user