summaryrefslogtreecommitdiff
path: root/ale_linters/elm/make.vim
diff options
context:
space:
mode:
authorAryeh Leib Taurog <git@aryehleib.com>2019-01-03 21:45:25 +0200
committerAryeh Leib Taurog <git@aryehleib.com>2019-01-04 09:55:35 +0200
commit4a11a6337e37a1e3b5ad28f77f15979ccd47d587 (patch)
tree04fdb7e8af6826f884e1e0f444f2abccca62f0e8 /ale_linters/elm/make.vim
parentba38688dffd846a633ae2c076441927c864ffd5f (diff)
downloadale-4a11a6337e37a1e3b5ad28f77f15979ccd47d587.zip
fix: don’t use regex match
windows paths have backslashes, which are special in regex patterns
Diffstat (limited to 'ale_linters/elm/make.vim')
-rw-r--r--ale_linters/elm/make.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim
index a6884750..37b8d07c 100644
--- a/ale_linters/elm/make.vim
+++ b/ale_linters/elm/make.vim
@@ -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