Skip to content

Commit

Permalink
fix: issue with ubuntu open link
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Mar 5, 2025
1 parent 4e15246 commit 12560fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ const testCases: {
"\n- Votre nom d'utilisateur est **elastic**\n- Votre mot de passe est **mot-de-pase**\n- Vous pouvez vous connecter à elastic avec votre navigateur à ce [lien](https://user-ddecrulle-elasticsearch-507582.user.lab.sspcloud.fr)\n- Vous pouvez vous connectez à elastic depuis l'intérieur du datalab à cette URL : **http://elastic-507582-elasticsearch:9200**\n- Vous pouvez vous connecter à kibana avec votre navigateur à ce [lien](https://user-ddecrulle-507582.user.lab.sspcloud.fr)\n- Un seul cluster de elastic peut être démarré dans un projet\n\n**NOTES sur la suppression :**\n\n- **Vous pouvez supprimer ce chart en toute sécurité et en recréer un plus tard**\n- Les volumes de données ne seront pas supprimés\n- Si vous démarrez un nouveau elastic, il réutilisera ces volumes en silence.\n- Si vous souhaitez supprimer définitivement ces volumes : `kubectl delete pvc data-elastic-elasticsearch-master-0 data-elastic-elasticsearch-master-1 data-elastic-elasticsearch-data-0 data-elastic-elasticsearch-data-1`\n"
},
expected: "https://user-ddecrulle-elasticsearch-507582.user.lab.sspcloud.fr"
},
{
helmRelease: {
urls: ["https://user-ddecrulle-100154-0.user.lab.sspcloud.fr/"],
postInstallInstructions: `
- You can connect to this ubuntu within your browser at this [link](https://user-ddecrulle-100154-0.user.lab.sspcloud.fr/vnc.html)
- You will need this service password to access the service: **mot-de-passe**
*It usually never changes except if you or a member of your project requested it to*.
`
},
expected: "https://user-ddecrulle-100154-0.user.lab.sspcloud.fr/vnc.html"
}
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export function getServiceOpenUrl(params: { helmRelease: HelmReleaseLike }): str
url =>
url
.replace(/\/$/, "") // Remove trailing slash
.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "(?:[/?#][^\\s]*|\\b)" // Ensure correct path/query matching
.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "(?:[/?#][^\\s)]*)?" // Allow paths and query parameters
)
.join("|"),
"g"
"gi"
);

const match = urlRegex.exec(postInstallInstructions);
Expand Down

0 comments on commit 12560fe

Please sign in to comment.