diff --git a/src/beautifiers/black.coffee b/src/beautifiers/black.coffee index e83c8d47c..cfef6f2b5 100644 --- a/src/beautifiers/black.coffee +++ b/src/beautifiers/black.coffee @@ -20,7 +20,10 @@ module.exports = class Black extends Beautifier try text.match(/black, version (\d+\.\d+)/)[1] + "." + text.match(/b(\d+)$/)[1] catch - text.match(/black, version (\d+\.\d+)/)[1] + ".0" + try + text.match(/black, version (\d+\.\d+)/)[1] + ".0" + catch + text.match(/black, (\d+\.\d+\.\d+)/)[1] } } ]