Skip to content

Commit

Permalink
fix: Allow SDK directories to contain any version suffix (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored Jul 13, 2022
1 parent dceca51 commit 8e8f7c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
6.1.0
6.1.1 (7/13/2022)
-------------------
* Allow SDK directories to contain any version suffix

6.1.0 (6/28/2022)
-------------------
* Re-enabled installing CI builds
* Updated minor/patch dependencies
Expand Down
6 changes: 5 additions & 1 deletion lib/commands/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ exports.desc = 'manages installed Titanium SDKs';
/** @namespace SdkSubcommands */
const SdkSubcommands = {};

const versionRegExp = /^(\d+)\.(\d+)\.(\d+)(?:\.\w+)?$/i;
// X.Y.Z
// X.Y.Z.GA or X.Y.Z.RC or X.Y.Z.GA.foo or X.Y.Z.GA.foo.bar
// X.Y.Z.foo or X.Y.Z.foo.bar
const versionRegExp = /^(\d+)\.(\d+)\.(\d+)(?:\.\w+)?/i;

const sortTypes = [ 'beta', 'rc', 'ga' ];
const releaseTypeMap = {
latest: 'ga',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mobile web",
"appc-client"
],
"version": "6.1.0",
"version": "6.1.1",
"author": "TiDev, Inc. <npm@tidev.io>",
"bugs": {
"url": "https://github.com/tidev/titanium_mobile/issues"
Expand Down

0 comments on commit 8e8f7c2

Please sign in to comment.