Allow 0 for minor and patch versions of docker

This commit is contained in:
Steven Zeck 2017-10-13 23:00:51 -05:00
parent 07047c78fa
commit 2ec771f203
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Next
- 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)

View File

@ -379,7 +379,7 @@ class HybridExecutable extends Executable
homepage: "https://www.docker.com/"
installation: "https://www.docker.com/get-docker"
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