Fix unit test error

This commit is contained in:
Steven Zeck 2017-11-11 13:47:20 -06:00
parent f079330f80
commit 9db0667943
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ module.exports = class OCPIndent extends Beautifier
version: { version: {
parse: (text) -> parse: (text) ->
try try
text.match(/version (\d+\.\d+\.\d+)/)[1] text.match(/(\d+\.\d+\.\d+)/)[1]
catch catch
text.match(/version (\d+\.\d+)/)[1] + ".0" text.match(/(\d+\.\d+)/)[1] + ".0"
} }
docker: { docker: {
image: "unibeautify/ocp-indent" image: "unibeautify/ocp-indent"