[ruby/time] Make RFC2822 regexp linear
https://hackerone.com/reports/1485501 https://github.com/ruby/time/commit/51034bda4c
This commit is contained in:
parent
aa3885501f
commit
cbfd029985
@ -510,7 +510,7 @@ class Time
|
|||||||
(\d{2,})\s+
|
(\d{2,})\s+
|
||||||
(\d{2})\s*
|
(\d{2})\s*
|
||||||
:\s*(\d{2})
|
:\s*(\d{2})
|
||||||
(?:\s*:\s*(\d{2}))?\s+
|
(?:\s*:\s*(\d\d))?\s+
|
||||||
([+-]\d{4}|
|
([+-]\d{4}|
|
||||||
UT|GMT|EST|EDT|CST|CDT|MST|MDT|PST|PDT|[A-IK-Z])/ix =~ date
|
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.
|
# Since RFC 2822 permit comments, the regexp has no right anchor.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user