@axa-fr/react-oidc 6.13.2 → 6.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -217,7 +217,7 @@ const getCurrentDatabaseDomain = (database, url) => {
217
217
  let domain = domainsToSendTokens[i];
218
218
 
219
219
  if (typeof domain === 'string') {
220
- domain = new RegExp(`^${domain}`, 'gm');
220
+ domain = new RegExp(`^${domain}`);
221
221
  }
222
222
 
223
223
  if (domain.test?.(url)) {
@@ -393,7 +393,7 @@ const checkDomain = (domains, endpoint) => {
393
393
  let testable = domain;
394
394
 
395
395
  if (typeof domain === 'string') {
396
- testable = new RegExp(`^${domain}`, 'gm');
396
+ testable = new RegExp(`^${domain}`);
397
397
  }
398
398
 
399
399
  return testable.test?.(endpoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/react-oidc",
3
- "version": "6.13.2",
3
+ "version": "6.13.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "jsnext:main": "dist/index.js",
@@ -217,7 +217,7 @@ const getCurrentDatabaseDomain = (database, url) => {
217
217
  let domain = domainsToSendTokens[i];
218
218
 
219
219
  if (typeof domain === 'string') {
220
- domain = new RegExp(`^${domain}`, 'gm');
220
+ domain = new RegExp(`^${domain}`);
221
221
  }
222
222
 
223
223
  if (domain.test?.(url)) {
@@ -393,7 +393,7 @@ const checkDomain = (domains, endpoint) => {
393
393
  let testable = domain;
394
394
 
395
395
  if (typeof domain === 'string') {
396
- testable = new RegExp(`^${domain}`, 'gm');
396
+ testable = new RegExp(`^${domain}`);
397
397
  }
398
398
 
399
399
  return testable.test?.(endpoint);