@@ -286,7 +286,7 @@ type Stage = 'START' | 'SSO_FORM' | 'CONNECTED' | 'AUTHENTICATING' | 'AWS_PROFIL
286
286
287
287
function validateSsoUrlFormat(url : string ) {
288
288
const regex =
289
- / ^ (https? :\/\/ (. + )\. awsapps\. com\/ start| https? :\/\/ identitycenter\. amazonaws\. com\/ ssoins-[\d a-zA-Z ] {16} )$ /
289
+ / ^ (https? :\/\/ (. + )\. awsapps\. com\/ start| https? :\/\/ identitycenter\. amazonaws\. com\/ ssoins-[\d a-zA-Z ] {16} )\/ ? $ /
290
290
return regex .test (url )
291
291
}
292
292
@@ -484,7 +484,7 @@ export default defineComponent({
484
484
if (this .startUrl && ! validateSsoUrlFormat (this .startUrl )) {
485
485
this .startUrlError =
486
486
' URLs must start with http:// or https://. Example: https://d-xxxxxxxxxx.awsapps.com/start'
487
- } else if (this .startUrl && this .existingStartUrls .some (url => url === this .startUrl )) {
487
+ } else if (this .startUrl && this .existingStartUrls .some (( url ) => url === this .startUrl )) {
488
488
this .startUrlError =
489
489
' A connection for this start URL already exists. Sign out before creating a new one.'
490
490
} else {
@@ -520,7 +520,7 @@ export default defineComponent({
520
520
// to reuse connections in AWS Toolkit & Amazon Q
521
521
const sharedConnections = await client .fetchConnections ()
522
522
sharedConnections
523
- ?.filter (c => ! this .existingStartUrls .includes (c .startUrl ))
523
+ ?.filter (( c ) => ! this .existingStartUrls .includes (c .startUrl ))
524
524
.forEach ((connection , index ) => {
525
525
this .importedLogins .push ({
526
526
id: LoginOption .IMPORTED_LOGINS + index ,
@@ -535,7 +535,7 @@ export default defineComponent({
535
535
this .$forceUpdate ()
536
536
},
537
537
async updateExistingStartUrls() {
538
- this .existingStartUrls = (await client .listSsoConnections ()).map (conn => conn .startUrl )
538
+ this .existingStartUrls = (await client .listSsoConnections ()).map (( conn ) => conn .startUrl )
539
539
},
540
540
async getDefaultStartUrl() {
541
541
return await client .getDefaultStartUrl ()
0 commit comments