style: format haxe sources
This commit is contained in:
@@ -33,7 +33,8 @@ abstract Version(Array<Int>) {
|
||||
@:from public static function fromString(value:String):Version {
|
||||
var r = ~/(\d+)\.(\d+)\.(\d+)(-SNAPSHOT)?/;
|
||||
return if (r.match(value)) {
|
||||
new Version(Std.parseInt(r.matched(1)), Std.parseInt(r.matched(2)), Std.parseInt(r.matched(3)), r.matched(4) != null);
|
||||
new Version(Std.parseInt(r.matched(1)), Std.parseInt(r.matched(2)), Std.parseInt(r.matched(3)),
|
||||
r.matched(4) != null);
|
||||
} else {
|
||||
new Version(0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user