mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 17:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package org.osmf.media.pluginClasses
|
||||
{
|
||||
public class VersionUtils
|
||||
{
|
||||
|
||||
public function VersionUtils()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function parseVersionString(param1:String) : Object
|
||||
{
|
||||
var _loc4_:Array = param1.split(".");
|
||||
var _loc2_:int = 0;
|
||||
var _loc3_:int = 0;
|
||||
if(_loc4_.length >= 1)
|
||||
{
|
||||
_loc2_ = parseInt(_loc4_[0]);
|
||||
}
|
||||
if(_loc4_.length >= 2)
|
||||
{
|
||||
_loc3_ = parseInt(_loc4_[1]);
|
||||
if(_loc3_ < 10)
|
||||
{
|
||||
_loc3_ *= 10;
|
||||
}
|
||||
}
|
||||
return {
|
||||
"major":_loc2_,
|
||||
"minor":_loc3_
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user