Skip to content

Commit 1f3d2a2

Browse files
authored
Fix EUSC sign-in URL format and improve region matching regex (#412)
* Fix EUSC sign-in URL format and improve region matching regex * Bump v6.2.1
1 parent 2dde8ec commit 1f3d2a2

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
## 6.2.0 (2026-07-05)
4+
## 6.2.1 (2026-07-07)
55

66
- Add AWS European Sovereign Cloud support (thanks to @ArnaudLjn)
77

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.2.0",
2+
"version": "6.2.1",
33
"name": "AWS Extend Switch Roles",
44
"description": "Extend your AWS IAM switching roles. You can set the configuration like aws config format",
55
"short_name": "Extend SwitchRole",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-extend-switch-roles",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"description": "Extend your AWS IAM switching roles by Chrome extension",
55
"main": "index.js",
66
"directories": {

src/js/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function getMetaData() {
7979
if (ir) {
8080
if (ir.startsWith("us-gov-")) return "signin.amazonaws-us-gov.com";
8181
else if (ir.startsWith("cn-")) return "signin.amazonaws.cn";
82-
else if (ir.startsWith("eusc-")) return "signin.amazonaws-eusc.eu";
82+
else if (ir.startsWith("eusc-")) return `${ir}.signin.amazonaws-eusc.eu`;
8383
}
8484

8585
return "signin.aws.amazon.com";

src/js/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function getCurrentUrlandRegion(aURL) {
279279
if (md) region = md[1];
280280

281281
let isLocal = false;
282-
const mdsd = aURL.host.match(/(([a-z]{2}\-[a-z-]+\-[1-9])\.)?console\.(aws|amazonaws)/);
282+
const mdsd = aURL.host.match(/(([a-z]{2,4}\-[a-z-]+\-[1-9])\.)?console\.(aws|amazonaws)/);
283283
if (mdsd) {
284284
const [,, cr = 'us-east-1'] = mdsd;
285285
if (cr === region) isLocal = true;

src/updated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h3>'Automatic tab grouping for multi-session' setting (Experimental, Supporters
7474

7575
<hr style="margin:18px 0">
7676

77-
<h2>6.2.0 <span style="margin-left:0.75em; color:rgb(221, 63, 0)">New version!</span></h2>
77+
<h2>6.2.1 <span style="margin-left:0.75em; color:rgb(221, 63, 0)">New version!</span></h2>
7878
<ul>
7979
<li>Add AWS European Sovereign Cloud support</li>
8080
</ul>

0 commit comments

Comments
 (0)