summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorMichał Ziąbkowski <mziab@o2.pl>2017-06-06 20:49:57 +0200
committerMichał Ziąbkowski <mziab@o2.pl>2017-06-06 21:08:30 +0200
commite4708c356bdf05b0bc135d35da3f714a3d9d7705 (patch)
tree3b3b43fd1f126a4b4d828b9a66e7f5f8a9daf907 /autoload
parent7db805b0cd1367ebf866e0c149fd819e425f6e0d (diff)
downloadale-e4708c356bdf05b0bc135d35da3f714a3d9d7705.zip
Fixed stylelint not catching all errors.
The original regex failed to account for short lines being padded to the length of the longest error.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/handlers/css.vim2
1 files changed, 1 insertions, 1 deletions
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)