[Profile indicator] Change profile URL regex
An experiment called SMEI_UNIFIED_PROFILES allows to access profiles
through a new URL which didn't match the regular expression we had for
profile URLs.
This change modifies the regex to match these new URLs.
Example of the new URLs: https://support.google.com/s/community/user/42
Change-Id: Ia19cdbf88185246e8f7e8045897f59150df51103
diff --git a/src/injections/profileindicator_inject.js b/src/injections/profileindicator_inject.js
index 4f18f85..b3bbdc6 100644
--- a/src/injections/profileindicator_inject.js
+++ b/src/injections/profileindicator_inject.js
@@ -1,5 +1,5 @@
var CCProfileRegex =
- /^(?:https:\/\/support\.google\.com)?\/s\/community\/forum\/[0-9]*\/user\/(?:[0-9]+)$/;
+ /^(?:https:\/\/support\.google\.com)?\/s\/community(?:\/forum\/[0-9]*)?\/user\/(?:[0-9]+)$/;
var CCRegex = /^https:\/\/support\.google\.com\/s\/community/;
const BASE_URL = 'https://support.google.com/s/community/api/';