summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-12-30 14:32:05 +0900
committergit <[email protected]>2023-03-30 10:44:39 +0000
commitcbfd02998597f652940def034e490c2428baef09 ()
treee40e0a23061cc0c320e663565454daf35942af14
parentaa3885501f89e4927a72ccc1f90ff9cbc4140e17 (diff)
[ruby/time] Make RFC2822 regexp linear
https://hackerone.com/reports/1485501 https://.com/ruby/time/commit/51034bda4c
-rw-r--r--lib/time.rb2
1 files changed, 1 insertions, 1 deletions
@@ -510,7 +510,7 @@ class Time
(\d{2,})\s+
(\d{2})\s*
:\s*(\d{2})
- (?:\s*:\s*(\d{2}))?\s+
([+-]\d{4}|
UT|GMT|EST|EDT|CST|CDT|MST|MDT|PST|PDT|[A-IK-Z])/ix =~ date
# Since RFC 2822 permit comments, the regexp has no right anchor.