diff options
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/semver.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/semver.vim b/autoload/ale/semver.vim index 8f549c9f..5f1b46fc 100644 --- a/autoload/ale/semver.vim +++ b/autoload/ale/semver.vim @@ -14,10 +14,10 @@ function! ale#semver#GetVersion(executable, version_lines) abort let l:version = get(s:version_cache, a:executable, []) for l:line in a:version_lines - let l:match = matchlist(l:line, '\v(\d+)\.(\d+)\.?(\d?)') + let l:match = matchlist(l:line, '\v(\d+)\.(\d+)(\.(\d+))?') if !empty(l:match) - let l:version = [l:match[1] + 0, l:match[2] + 0, l:match[3] + 0] + let l:version = [l:match[1] + 0, l:match[2] + 0, l:match[4] + 0] let s:version_cache[a:executable] = l:version break |