Skip to content

Commit

Permalink
blackのバグ修正(Glavin001#2597)
Browse files Browse the repository at this point in the history
  • Loading branch information
na-trium-144 committed Sep 28, 2022
1 parent 41d5051 commit 1664140
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/beautifiers/black.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
]
Expand Down

0 comments on commit 1664140

Please sign in to comment.