Module: CookieJar::CookieValidation::PATTERN

Includes:
URI::REGEXP::PATTERN
Defined in:
lib/cookiejar/cookie_validation.rb

Constant Summary collapse

TOKEN =
'[^(),\/<>@;:\\\"\[\]?={}\s]+'
VALUE1 =
"([^;]*)"
IPADDR =
"#{IPV4ADDR}|#{IPV6ADDR}"
BASE_HOSTNAME =
"(?:#{DOMLABEL}\\.)(?:((?:(?:#{DOMLABEL}\\.)+(?:#{TOPLABEL}\\.?))|local))"
BASE3_HOSTNAME =
"(?:#{DOMLABEL}\\.)(?:#{DOMLABEL}\\.)(?:((?:(?:#{DOMLABEL}\\.)+(?:#{TOPLABEL}\\.?))|local))"
QUOTED_PAIR =
"\\\\[\\x00-\\x7F]"
LWS =
"\\r\\n(?:[ \\t]+)"
QDTEXT =

TEXT=“|(?:#LWS)”

"[\\t\\x20-\\x21\\x23-\\x7E\\x80-\\xFF]|(?:#{LWS})"
QUOTED_TEXT =
"\\\"(?:#{QDTEXT}|#{QUOTED_PAIR})*\\\""
VALUE2 =
"#{TOKEN}|#{QUOTED_TEXT}"