mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-28 12:32:27 +08:00
use the correct regex to match the escape sequences...
This commit is contained in:
@@ -12,9 +12,7 @@ function! ale_linters#vala#vala_lint#Handle(buffer, lines) abort
|
|||||||
for l:line in a:lines
|
for l:line in a:lines
|
||||||
" remove color escape sequences since vala-lint doesn't support
|
" remove color escape sequences since vala-lint doesn't support
|
||||||
" output without colors
|
" output without colors
|
||||||
let l:cleaned_line = substitute(l:line, '\x1b\[[0-9;]*m', '', 'g')
|
let l:cleaned_line = substitute(l:line, '\e\[[0-9;]\+[mK]', '', 'g')
|
||||||
execute 'echo l:line'
|
|
||||||
execute 'echo l:cleaned_line'
|
|
||||||
let l:match = matchlist(l:cleaned_line, l:pattern)
|
let l:match = matchlist(l:cleaned_line, l:pattern)
|
||||||
|
|
||||||
if len(l:match) == 0
|
if len(l:match) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user