From c370bf6ae1e70bae5042a18245568d19fd4c8b98 Mon Sep 17 00:00:00 2001 From: yuki777 Date: Sat, 27 Jan 2024 20:43:23 +0700 Subject: [PATCH] Add new URL pattern for staging admin --- options.js | 2 +- test.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/options.js b/options.js index d4e3b56..6e1f4b8 100644 --- a/options.js +++ b/options.js @@ -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", diff --git a/test.js b/test.js index d22fdb9..632ee16 100644 --- a/test.js +++ b/test.js @@ -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", @@ -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");