Skip to content

Commit

Permalink
Merge pull request #20 from yuki777/support-stg-admin
Browse files Browse the repository at this point in the history
Add new URL pattern for stg-admin
  • Loading branch information
yuki777 authored Jan 27, 2024
2 parents 2725b11 + c370bf6 commit b8eb585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion options.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getDefaultConfigs() {
style: {
backgroundColor: "rgb(255,214,10)",
},
url: "^https?://.*stage-admin.+|^https?://admin-.+stage.+",
url: "^https?://.*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+",
},
{
name: "production",
Expand Down
5 changes: 4 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getDefaultConfigs() {
style: {
backgroundColor: "rgb(255,214,10)",
},
url: "^https?://.*stage-admin.+|^https?://admin-.+stage.+",
url: "^https?://.*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+",
},
{
name: "production",
Expand Down Expand Up @@ -83,6 +83,9 @@ testUrl("staging", "https://stage-admin-foo.bar.test/path");
testUrl("staging", "https://admin-feature-stage-foo.bar.test");
testUrl("staging", "https://admin-feature-stage-foo.bar.test/");
testUrl("staging", "https://admin-feature-stage-foo.bar.test/login");
testUrl("staging", "https://stg-admin.bar.test");
testUrl("staging", "https://stg-admin.bar.test/");
testUrl("staging", "https://stg-admin.bar.test/path");
testUrl("production", "https://admin-feature-foo.bar.test");
testUrl("production", "https://admin-feature-foo.bar.test/");
testUrl("production", "https://admin-feature-foo.bar.test/path");
Expand Down

0 comments on commit b8eb585

Please sign in to comment.