Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: isCTLExcludingHtab #2790

Merged
merged 6 commits into from
Feb 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update benchmarks/cookiesIsCTLExcludingHtab.mjs
Co-authored-by: tsctx <91457664+tsctx@users.noreply.github.com>
  • Loading branch information
Uzlopak and tsctx authored Feb 21, 2024
commit 5d9b179d385e98ba7ad86289625afd35233c5f0a
9 changes: 6 additions & 3 deletions benchmarks/cookiesIsCTLExcludingHtab.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ const valid = 'Space=Cat; Secure; HttpOnly; Max-Age=2'
const invalid = 'Space=Cat; Secure; HttpOnly; Max-Age=2\x7F'

group('isCTLExcludingHtab', () => {
bench(valid, () => {
isCTLExcludingHtab(valid)
isCTLExcludingHtab(invalid)
bench(`valid: ${valid}`, () => {
return isCTLExcludingHtab(valid)
})

bench(`invalid: ${invalid}`, () => {
return isCTLExcludingHtab(invalid)
})
})

Expand Down
Loading