Skip to content

Commit 1664140

Browse files
committed
blackのバグ修正(Glavin001#2597)
1 parent 41d5051 commit 1664140

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/beautifiers/black.coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ module.exports = class Black extends Beautifier
2020
try
2121
text.match(/black, version (\d+\.\d+)/)[1] + "." + text.match(/b(\d+)$/)[1]
2222
catch
23-
text.match(/black, version (\d+\.\d+)/)[1] + ".0"
23+
try
24+
text.match(/black, version (\d+\.\d+)/)[1] + ".0"
25+
catch
26+
text.match(/black, (\d+\.\d+\.\d+)/)[1]
2427
}
2528
}
2629
]

0 commit comments

Comments
 (0)