mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-18 20:11:25 +08:00
fix: don’t use regex match
windows paths have backslashes, which are special in regex patterns
This commit is contained in:
1 parent
ba38688dff
commit
4a11a6337e
1 file changed
+1
-1
@@ -179,7 +179,7 @@ function! ale_linters#elm#make#IsTest(buffer) abort
|
|||||||
|
|
||||||
let l:buffer_path = fnamemodify(bufname(a:buffer), ':p')
|
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
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in new issue
Block a user