Fix unit test error
This commit is contained in:
parent
f079330f80
commit
9db0667943
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue