Skip to content

Commit

Permalink
fix regex issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanVB committed Apr 20, 2017
1 parent adca116 commit a03b225
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions syntax_checkers/python/coala.vim
Expand Up @@ -25,11 +25,8 @@ function! SyntaxCheckers_python_coala_IsAvailable() dict " {{{1
endif

try
" Lets see if this works for us.

let version_output = syntastic#util#system(self.getExecEscaped() . ' --version')
let coala_version = filter( split(version_output, '\m, \=\|\n'), 'v:val =~# ''\m^\(python[-0-9]*-\|\.\)\=coala[-0-9]*\>''' )[0]
let parsed_ver = syntastic#util#parseVersion(substitute(coala_version, '\v^\S+\s+', '', ''))
let parsed_ver = syntastic#util#parseVersion(substitute(version_output, '\v^\S+\s+', '', ''))
call self.setVersion(parsed_ver)

let s:coala_new = syntastic#util#versionIsAtLeast(parsed_ver, [1])
Expand Down

0 comments on commit a03b225

Please sign in to comment.