Fixed Red/Green bar status line reading regex to work

This commit is contained in:
Mikko Harju 2011-03-12 18:04:53 +02:00
parent 58708fb349
commit d4ed444db0

View File

@ -85,7 +85,7 @@ function jasmine#redgreen()
let lines = split(result, "\n")
for line in lines
if line =~ '\d\+ examples, \(\d\+\) failure'
if line =~ '\d\+ example\(s*\), \(\d\+\) failure\(s*\)'
if line =~ ', 0 failure'
call jasmine#greenbar(line)
else