Skip to content

Commit

Permalink
Limit the converted version with 3 levels
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Sep 7, 2018
1 parent d98f7cd commit 5b7cb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Tests/Util/AssetUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ public function getFormatPackageData()
return array(
array('1.0.0', null, '1.0.0'),
array('1.0.1', '1.0.0', '1.0.0'),
array('1.0.0.x-dev', null, '1.0.0.0'),
array('1.0.0.x-dev', null, '1.0.0'),
array('1.0.0.x', null, '1.0.0'),
array('1.0.0.1', null, '1.0.0'),
array('dev-master', null, '1.0.0', '1-dev'),
array('dev-master', null, '1.0.0', '1.0-dev'),
array('dev-master', null, '1.0.0', '1.0.0-dev'),
Expand Down
2 changes: 1 addition & 1 deletion Util/AssetUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private static function formatVersion($version)
}
}

return implode('.', $exp);
return $exp[0].'.'.$exp[1].'.'.$exp[2];
}

/**
Expand Down

0 comments on commit 5b7cb97

Please sign in to comment.