Fix #2597. Regex expected different version string than it received.
This commit is contained in:
parent
41d5051b39
commit
bffd123a26
|
@ -20,7 +20,10 @@ module.exports = class Black extends Beautifier
|
|||
try
|
||||
text.match(/black, version (\d+\.\d+)/)[1] + "." + text.match(/b(\d+)$/)[1]
|
||||
catch
|
||||
try
|
||||
text.match(/black, version (\d+\.\d+)/)[1] + ".0"
|
||||
catch
|
||||
text.match(/black, (\d+\.\d+\.\d+)/)[1]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue