Skip to content

Commit

Permalink
Update DOMAIN_MATCH_REGEX (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiGhiasi authored Oct 11, 2023
1 parent ec33e85 commit ab2ac71
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 ab2ac71

Please sign in to comment.