style: format haxe sources

This commit is contained in:
2026-10-09 12:41:58 +03:00
parent a99490ec05
commit 9e245fea4b
11 changed files with 57 additions and 19 deletions
+2 -1
View File
@@ -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);
}