mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 13:34:46 +08:00
fix: don’t use regex match
windows paths have backslashes, which are special in regex patterns
This commit is contained in:
@@ -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 New Issue
Block a user