summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-01-27 10:56:02 +0000
committerw0rp <devw0rp@gmail.com>2019-01-27 10:56:08 +0000
commit3ac12b69399fc1f85e9a8ad2e76dc4e1f938f7d2 (patch)
treecaccc425e69320b30574078075d61e1d6ef88ded /autoload
parentdd995d9aa9ec950fdf307cad39487e29abd5ee49 (diff)
downloadale-3ac12b69399fc1f85e9a8ad2e76dc4e1f938f7d2.zip
Fix #2216 - Tolerate versions without path numbers
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/semver.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/semver.vim b/autoload/ale/semver.vim
index 6b0fd34a..8f549c9f 100644
--- a/autoload/ale/semver.vim
+++ b/autoload/ale/semver.vim
@@ -14,7 +14,7 @@ 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]