Merge pull request #1889 from szeck87/docker-version-fix

Allow 0 for minor and patch versions of docker
This commit is contained in:
Glavin Wiechert 2017-10-14 14:56:26 -03:00 committed by GitHub
commit 30dece209a
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Next # Next
- See [#881](https://github.com/Glavin001/atom-beautify/issues/881). Update to Prettydiff version 2! - See [#881](https://github.com/Glavin001/atom-beautify/issues/881). Update to Prettydiff version 2!
- Fix for [#1888](https://github.com/Glavin001/atom-beautify/issues/1888). Allow 0 for minor and patch versions of Docker
- ... - ...
# v0.30.5 (2017-08-11) # v0.30.5 (2017-08-11)

View File

@ -146,6 +146,10 @@
{ {
"name": "Kamontat Chantrachirathumrong", "name": "Kamontat Chantrachirathumrong",
"url": "https://github.com/kamontat" "url": "https://github.com/kamontat"
},
{
"name": "Steven Zeck",
"url": "https://github.com/szeck87"
} }
], ],
"engines": { "engines": {

View File

@ -379,7 +379,7 @@ class HybridExecutable extends Executable
homepage: "https://www.docker.com/" homepage: "https://www.docker.com/"
installation: "https://www.docker.com/get-docker" installation: "https://www.docker.com/get-docker"
version: { version: {
parse: (text) -> text.match(/version [0]*([1-9]\d*).[0]*([1-9]\d*).[0]*([1-9]\d*)/).slice(1).join('.') parse: (text) -> text.match(/version [0]*([1-9]\d*).[0]*([0-9]\d*).[0]*([0-9]\d*)/).slice(1).join('.')
} }
}) })
return @docker return @docker