Skip to content

Commit

Permalink
refactor(index): consolidate controlre variables (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent 4916266 commit 0258abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const credentialsLaxRE = new RegExp(`^${BWS}*${authScheme}${BWS}+${token68}${BWS
/**
* @see https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
*/
const CTL = '[\x00-\x1F\x7F]'
const controlRE = new RegExp(CTL)
// eslint-disable-next-line no-control-regex
const controlRE = /[\x00-\x1F\x7F]/

/**
* RegExp for basic auth user/pass
Expand Down

0 comments on commit 0258abe

Please sign in to comment.