Skip to content

Commit

Permalink
extra paranoid - we know the check list should be short
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 7, 2023
1 parent 9fbb7dc commit a2a905c
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 @@ -40,7 +40,7 @@ export function seekFirstNonPublicSubDomain(hostname: string, cookieJar = docume
if (['localhost', '127.0.0.1'].includes(hostname)) return ''

const list = hostname.split('.')
let len = list.length
let len = Math.min(list.length, 8) // paranoia - we know this number should be small
const key = 'dmn_chk_' + uuidv7()
const R = new RegExp('(^|;)\\s*' + key + '=1')

Expand Down

0 comments on commit a2a905c

Please sign in to comment.