Fix unit test error
This commit is contained in:
parent
f079330f80
commit
9db0667943
|
@ -17,9 +17,9 @@ module.exports = class OCPIndent extends Beautifier
|
|||
version: {
|
||||
parse: (text) ->
|
||||
try
|
||||
text.match(/version (\d+\.\d+\.\d+)/)[1]
|
||||
text.match(/(\d+\.\d+\.\d+)/)[1]
|
||||
catch
|
||||
text.match(/version (\d+\.\d+)/)[1] + ".0"
|
||||
text.match(/(\d+\.\d+)/)[1] + ".0"
|
||||
}
|
||||
docker: {
|
||||
image: "unibeautify/ocp-indent"
|
||||
|
|
Loading…
Reference in New Issue