From 2ec771f20365035f3410a98feef55cf79265f4a0 Mon Sep 17 00:00:00 2001 From: Steven Zeck Date: Fri, 13 Oct 2017 23:00:51 -0500 Subject: [PATCH 1/2] Allow 0 for minor and patch versions of docker --- CHANGELOG.md | 1 + src/beautifiers/executable.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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/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 From 5444fc1f5b3a08929df44a458cb3d7a194a66972 Mon Sep 17 00:00:00 2001 From: Steven Zeck Date: Fri, 13 Oct 2017 23:04:14 -0500 Subject: [PATCH 2/2] Add contributor to package.json --- package.json | 4 ++++ 1 file changed, 4 insertions(+) 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": {