diff --git a/CHANGELOG.md b/CHANGELOG.md index afa5999..171b381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 0b76590..17b14a7 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,10 @@ { "name": "Kamontat Chantrachirathumrong", "url": "https://github.com/kamontat" + }, + { + "name": "Steven Zeck", + "url": "https://github.com/szeck87" } ], "engines": { diff --git a/src/beautifiers/executable.coffee b/src/beautifiers/executable.coffee index ef57a35..d2f876b 100644 --- a/src/beautifiers/executable.coffee +++ b/src/beautifiers/executable.coffee @@ -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