From 771a7a775447d50c51eec770614f38da1bcab5ac Mon Sep 17 00:00:00 2001 From: Mahdi Date: Sat, 2 Sep 2023 13:36:50 +0330 Subject: [PATCH] Update DOMAIN_MATCH_REGEX --- src/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage.ts b/src/storage.ts index 97b1cb2d9..1b7d511b1 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -3,7 +3,7 @@ import { PersistentStore, Properties } from './types' import Config from './config' import { DISTINCT_ID, SESSION_ID } from './constants' -const DOMAIN_MATCH_REGEX = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i +const DOMAIN_MATCH_REGEX = /[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i // Methods partially borrowed from quirksmode.org/js/cookies.html export const cookieStore: PersistentStore = {