Skip to content

Commit

Permalink
Update DOMAIN_MATCH_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiGhiasi committed Sep 2, 2023
1 parent 79bfc90 commit 771a7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 771a7a7

Please sign in to comment.