From 4a11a6337e37a1e3b5ad28f77f15979ccd47d587 Mon Sep 17 00:00:00 2001 From: Aryeh Leib Taurog Date: Thu, 3 Jan 2019 21:45:25 +0200 Subject: =?UTF-8?q?fix:=20don=E2=80=99t=20use=20regex=20match?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit windows paths have backslashes, which are special in regex patterns --- ale_linters/elm/make.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/elm/make.vim') 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 -- cgit v1.2.3