From e4708c356bdf05b0bc135d35da3f714a3d9d7705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zi=C4=85bkowski?= Date: Tue, 6 Jun 2017 20:49:57 +0200 Subject: Fixed stylelint not catching all errors. The original regex failed to account for short lines being padded to the length of the longest error. --- autoload/ale/handlers/css.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/handlers/css.vim b/autoload/ale/handlers/css.vim index 7c4d3d14..28385986 100644 --- a/autoload/ale/handlers/css.vim +++ b/autoload/ale/handlers/css.vim @@ -42,7 +42,7 @@ function! ale#handlers#css#HandleStyleLintFormat(buffer, lines) abort " src/main.css " 108:10 ✖ Unexpected leading zero number-leading-zero " 116:20 ✖ Expected a trailing semicolon declaration-block-trailing-semicolon - let l:pattern = '\v^.* (\d+):(\d+) \s+(\S+)\s+ (.*[^ ])\s+([^ ]+)$' + let l:pattern = '\v^.* (\d+):(\d+) \s+(\S+)\s+ (.*[^ ])\s+([^ ]+)\s*$' let l:output = [] for l:match in ale#util#GetMatches(a:lines, l:pattern) -- cgit v1.2.3