Use non-greedy matching instead of looking for the comma

This commit is contained in:
Mark Grimes 2018-12-16 17:01:24 -05:00
parent 38d25fc7c0
commit ebab81b220

View File

@ -18,7 +18,7 @@ function! ale_linters#perl#perl#Handle(buffer, lines) abort
return []
endif
let l:pattern = '\(.\+\) at \(.\+\) line \(\d\+\),'
let l:pattern = '\(..\{-}\) at \(..\{-}\) line \(\d\+\)'
let l:output = []
let l:basename = expand('#' . a:buffer . ':t')