Skip to content

Commit a85fb1f

Browse files
committed
allow dashes in alias of SSO start URL
1 parent 045ef98 commit a85fb1f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/profiles.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export const addProfile = (configstore) =>
5151
name: "startUrl",
5252
message: "Your SSO start URL (e.g. https://<your-alias>.awsapps.com/start):",
5353
validate: (value) => {
54-
return value.match(/^https?:\/\/\w+\.awsapps.com\/start$/g) ? true : "Invalid start URL.";
54+
return value.match(/^https?:\/\/[\w.\-]+\.awsapps.com\/start$/g)
55+
? true
56+
: "Invalid start URL.";
5557
},
5658
},
5759
]).then(({ profileName, region, startUrl }) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-sso-cli",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "A tool for easily switching between different AWS SSO accounts.",
55
"main": "index.js",
66
"author": "eeno",

0 commit comments

Comments
 (0)