Skip to content

Commit

Permalink
[ML] Fix cloud ID check
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jun 9, 2020
1 parent 5d8de7a commit 0f09af2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getCloudDeploymentId(): string | null {
if (cloudInfo.cloudId === null) {
return null;
}
const tempCloudId = cloudInfo.cloudId.replace(/^.+:/, '');
const tempCloudId = cloudInfo.cloudId.replace(/^(.+)?:/, '');
try {
const matches = atob(tempCloudId).match(/^.+\$(.+)(?=\$)/);
return matches !== null && matches.length === 2 ? matches[1] : null;
Expand Down

0 comments on commit 0f09af2

Please sign in to comment.